Message board for the users of flat assembler.
> Main > transfer reg contents to var
i am trying to make a fucntion that makes l4x4 leters using a users 16 byte long variable
var db '1001111100010001'
the letter 4
how can i get the var contents from ax
i have done this
mov ax,examplevariable ;from the user
how can i make a variable of ax's contents?
i was dumb enough to try
mov anothervariable, ax
this is mainly so i can do this
mov ax, [anotherbuffer]
cmp ax, '0'
mov ax, [anotherbuffer+1] ; check the second digit
cmp ax, '1'
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
|02 Jul 2009, 07:02||
oh thats a major facepalm, i didnt try
mov ax, [anothervar] the other way around, sorry for the trouble
|02 Jul 2009, 07:36||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.
Website powered by rwasa.