emu8086

Status
Not open for further replies.

aj2003

Daemon Poster
Messages
1,094
I know this is not hardware but Its not really a windows program either. Ive got an assignment for you and I havent got a clue how to do this question.

I have some code for a hex to binary convertor, very simple. Its using the emu8086 assembler emulator

#MAKE_EXE#
DSEG SEGMENT PUBLIC 'DATA'
lf equ 0Ah
cr equ 0Dh
mess3 db lf,cr,"Processed output is: $"
mess1 db lf,lf,cr,"Type a single hex digit (0 to 9, a to f)"
db lf,cr,"or any other key to terminate program: $"
mess2 db lf,cr,"Error in input. Program terminating.$"
h2b db "0000$","0001$","0010$","0011$","0100$","0101$","0110$","0111$"
db "1000$","1001$","xxxxx","xxxxx","xxxxx","xxxxx","xxxxx","xxxxx"
db "xxxxx","1010$","1011$","1100$","1101$","1110$","1111$"
DSEG ENDS
SSEG SEGMENT STACK 'STACK'
dw 100 dup(0)
SSEG ENDS
CSEG SEGMENT PUBLIC 'CODE'
start PROC FAR
mov ax,DSEG
mov ds,ax





That is the 1st 19lines of it, and i have to edit out the "xxxxx" somehow. Any ideas would be appriciated, i know its a long shot.
 
Status
Not open for further replies.
Back
Top Bottom