Jump to content

HELP with simple ASM file.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Steve.L

Steve.L

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 444 posts
Running this through 8086 architecture via VIRGO.


Start:

	mov     dx, 04E9H

	mov     ch, 16

	mov     cl, 1

	mov     bx, Value

;*

Outloop:

	shl     bx, cl 

	jc      Got1

;

Got0:         

	mov     al, '?'

	jmp     Dump

;

Got1:

	mov     al, '?'

;

Dump:

	out     [dx], al

	sub     ch, 1

	jz     Outloop

	hlt

;		

;Data follows

;*

Value:       dw  90AFH

;

	end Start 


Apparently there's something wrong with this program. Any ideas? I know it's kinda early lol but any help is appreciated, I'm JUST starting to look at assembly.

#2
Steve.L

Steve.L

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 444 posts
Nevermind, I forgot to write '[Value]' instead of 'Value' lol.