【发布时间】:2012-12-07 20:33:14
【问题描述】:
我卡在输入字符串上,显示输入的字符串并将字符串大写转换为小写。
我必须使用emu8086.inc,但我不知道如何将下面的代码转换为接受字符串而不是数字/整数。有没有人愿意就此事进一步指导?
8086 asm 代码:
include 'emu8086.inc'
ORG 100h
LEA SI, msg1
CALL print_string
CALL scan_num
MOV AX, CX
; print the following string:
CALL pthis
DB 13, 10, 'You have entered: ', 0
CALL print_num
RET
msg1 DB 'Enter the number: ', 0
DEFINE_SCAN_NUM
DEFINE_PRINT_STRING
DEFINE_PRINT_NUM
DEFINE_PRINT_NUM_UNS
DEFINE_PTHIS
END
提前谢谢你。
【问题讨论】:
标签: assembly x86 x86-16 assembly-resolution