I'm making a program with debug so i can invert the order of the bits in a given byte, the problem is when i ask the user to input the byte, the byte is seen by the program as an ascii caracter not as an hexa number (a=61 in ascii), i manage to work with the basic numbers (0-9) by just using "and al,0f", but i don't know how to work with the highers numbers (a to f). Theres another question. When you use the assembler how do you safe a value in a specific memory place. for example:
.
.
mov [0200h],al
.
.
when the enssambling moment comes it shows an error. how do i fix this??
2006-08-16
10:37:58
·
4 answers
·
asked by
csrpolo
1
in
Computers & Internet
➔ Programming & Design
1. Using debug and assembler is a requirement
2006-08-16
12:02:34 ·
update #1
2. The program that i wrote looks like this:
mov ah,1
int 21
and al,0f
mov bl,al
mov al,10
mul bl
mov [200],al
mov ah,1
int 21
and al,0f
add [200],al
int 20
*this in debug runs good, but if i assemble it in this way, the assembler shows error
2006-08-16
12:10:39 ·
update #2