【发布时间】:2021-08-12 07:31:20
【问题描述】:
我有一个很短的组装TASM程序:
IDEAL
MODEL small
STACK 100h
DATASEG
;creating all the messages
opening_message db 10, 'This is an encryption program.', 10, 'This program allows you to encrypt a message into giberish,', 10, 'send it to a friend, who can then decrypt it back into text$'
CODESEG
start:
mov ax, @data
mov ds, ax
; --------------------------
; Your code here
; --------------------------
;We clear the screen of dosbox
mov ax, 13h
int 10h
mov ax, 2
int 10h
;print opening message
lea dx, [opening_message]
mov ah, 9
int 21h
exit:
mov ax, 4c00h
int 21h
END start
当我尝试在 DOSBOX-X 中运行程序时,最新版本,64 位,字符串中的换行符 (10) 以巨大的偏移量打印。看图
【问题讨论】: