Re: BL, BH etc...

new topic     » goto parent     » topic index » view thread      » older message » newer message

> From: Mike Fowler <stoner at NELSUN.GEN.NZ>
> Hello all...
> I've been making some handy mouse routines usding the dos interrupt #33,
> but theres one that requires REG_AL and REG_AH to store information, but
> machine.e only has REG_AX = 7 etc. as constants.
>
> Does anyone out there know what REG_BL, REG_BH etc are?
>
> thanks heaps :)

Say you want Interrupt #10, Service #10, Function #07.

AH = #10
AL = #07

then,

regs[REG_AX] = #1007
regs = dos_interrupt(#10, regs)

Each register is 16 bits wide and can be divided into high and low.
REG_BL is REG_BX low 8 bits
REG_BH is REG_BX high 8 bits

Now have I confused you?

Greg Harris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu