|
发表于 2011-11-30 18:26:11
|
显示全部楼层
command k uhead
ulcl ubfrptr
ulcl usum
rdfl 0xa
copy rbfr,wbfr;
ubfrptr=rbfr+0x22;
ptrmode char;var2=*ubfrptr; ubfrptr+=1;
ptrmode char;var3=*ubfrptr;
ubfrptr=rbfr+0x3c;
ptrmode LONG;usum=*ubfrptr;
switch uhead
case 0
var2-=1;
var3-=0x1;
usum+=2;
break;
case 1
var2-=0x1;
var3-=0x2;
usum+=0x3;
break;
case 2
var2-=1;
var3-=0x4;
usum+=0x5;
break;
case 3
var2-=1;
var3-=0x8;
usum+=0x9;
break;
case 4
var2-=1;
var3-=0x10;
usum+=0x11;
break;
case 5
var2-=1;
var3-=0x20;
usum+=0x21;
break;
case 6
var2-=1;
var3-=0x40;
usum+=0x41;
break;
case 7
var2-=1;
var3-=0x80;
usum+=0x81;
break;
default
fprintf "(Unknown Channel Update Type)"
eswitch
ubfrptr=wbfr+0x22;
ptrmode char;*ubfrptr=var2; ubfrptr+=1;
ptrmode char;*ubfrptr=var3;
ubfrptr=wbfr+0x3c;
ptrmode LONG;*ubfrptr=usum;
wrfl 0xa
displayheadmap
ecommand |
|