我是这种语言的新手,并试图熟悉它。在这个例子中,我得到一个“错误的地址”错误,但是它有什么问题? hextoasc proc near ; AX input, si point result storage address
push ax bx cx dx si di bp es
mov cx,00h
mov bx,0ah
hexloop1:
mov dx,0
div bx
ad
我遇到问题。我必须在8086程序集中编写一个程序,用字符串填充数组,然后仅打印字符“a,e,e,i,i,o,o,u,u”。 我已经成功地打印出数组内的每一个字符,但是当我开始加入条件和跳跃,我的程序刚刚进入一个无限循环:( Here's整个代码: org 100h
jmp main
;messsages to be shown:
msg1 db 'this is
我使用程序集8086emu,我需要一个8位数的数字发生器。 我试图@johnfound使用这段代码: RANDGEN: ; generate a rand no using the system time
RANDSTART:
MOV AH, 00h ; interrupts to get system time
INT 1AH ; CX:DX now hold
这个代码就像模拟图灵机一样。我正在检测这个代码,我提出要改变它的确定,但我不明白如何改变堆栈内容与CALL和RET .model small
.data
bant db 0,0,0,0,0,0,0,0,0
.code
.startup
mov si,4
call stateA
.exit
stateA proc near
cmp bant[si],0
je AB
jmp
我所经历的鸸鹋8086个例子并坚持以下thermometer.asm代码 #start=thermometer.exe#
; temperature rises fast, thus emulator should be set to run at the maximum speed.
; if closed, the thermometer window can be re-opened