Pregunta

firstly i don't know anything about how EMU8086 works. Moreover my Assembly language skills are very very poor. I've to show offset+base addressing and signed integer support in EMU8086. I have been trying for days now but i dont seem to be getting anywhere. Could anyone help me out? A code with comments will do. Pleaseeeee help me i am desperate right now.

¿Fue útil?

Solución

The tutorials right on the emu8086 website show how to do base-offset addressing:

http://www.emu8086.com/cx/asm_tutorial_02.html -

ORG 100H           ; make simple program 
MOV AX, 0B800h     ; AX = B800 
MOV DS, AX         ; DS = AX 
MOV CL, 'A'        ; CL = 'A' 
MOV CH, 1101_1111b ; CH = colour code 
MOV BX, 15Eh       ; BX = 015E 
MOV [BX], CX       ;  [DS:BX] = CX 
RET                ; exit 

They load the base address 0xb800 into DS (data segment register), load up some values into the low and high portions of the CX register, load the offset address 0x015e into the BX register, and then write the values from CX into the base:offset address [DS:BX].

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top