I'm stuck on retrieving bytes from a register using qbasic, specifically how do they get the Low byte and High byte from this:
'al%=lowbyte of ax, al%=highbyte of ax,
al%=outregs.ax and &hff
ah%=outregs.ax \ 256
I can understand that with call interrupt you can read or write to general registers but what i'm confused with is what are the '&HFF' and \ 256 for? aren't the registers already set, why the need to alter the value with these?
does outregs.ax equal one 16bit number and these two things seperate out the low byte and high byte, help i'm confused with this.