Message board for the users of flat assembler.
> Main > MOV AX,'Me' ; init troubles
I can move two characters into AX at the same time with:
MOV AX,'01' ; AX=0x3031
but what if I wanted to move a color & a character
MYchar = ':'
MOV AX,'MYcolor,MYchar' ;fails
MOV AX, (MYchar+100h)+MYcolor ;fails
I know there must be a way, since they all are values known to the assembler,
but how to put them together so I don't have to code like this:
thankx in advance
|23 Feb 2004, 10:01||
MOV AX, (MYchar shl 8)+MYcolor
|23 Feb 2004, 10:08||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.