汇编课程设计
;一对令人羡慕的情侣相约在爱情海,就在那里,二人度过了那难忘的情人节,并且,二人的感情得到闪电般的升华,过后二人闪电般结婚了,在鸟儿和花儿的陪伴下。
Pushr macro x,y,z,w
Push x
Push y
Push z
Push w
Endm
;堆栈顶数据弹出到寄存器宏定义
Popr macro x,y,z,w
Pop w
Pop z
Pop y
Pop x
Endm
;定义堆栈段
Stacks segment
Dw 256 dup(?)
Stacks ends
;定义数据段
Data segment ;
string db ' THEY ARE SO HAPPY '
strlen equ $-string
Robot1 db 13 ;机器人由7个符号组成,再加上滑板车气球和桃心
Db 5ch,8eh,0,0 ;左手,字符属性,行偏移,列偏移
Db 08h,06h,0,1 ;胸部,字符属性,行偏移,列偏移
Db 2fh,8eh,0,1 ;右手,字符属性,行偏移,列偏移
Db 0b3h,0fh,-1,1
db 02h,04h,-1,0
Db 0dbh,0ah,3,-2 ;腹部,字符属性,行偏移,列偏移
Db 13h,7h,1,0 ;两腿,字符属性,行偏移,列偏移
db 1ah,0eh,1,-1 ;滑板车
db 1ah,0eh,0,1
db 1ah,0eh,0,1
Db 02h,84h,-4,-1 ;面部,字符属性,行偏移,列偏移
Db 0b3h,94h,-1,0 ;天线,字符属性,行偏移,列偏移
Db 03h,0eh,0,10
robot2 db 255 ; 机器人由7和符号组成,再加上花儿,星星和桃心
Db 5ch,0eh,0,0 ;左手,字符属性,行偏移,列偏移
Db 08h,0bh,0,1 ;胸部,字符属性,行偏移,列偏移
Db 2fh,0eh,0,1 ;右手,字符属性,行偏移,列偏移
Db 0b3h,0fh,-1,1 ;花儿
db 0fh,1eh,-1,0
Db 1eh,02h,3,-2 ;腹部,字符属性,行偏移,列偏移
Db 13h,7h,1,0 ;两腿,字符属性,行偏移,列偏移
Db 02h,84h,-3,0 ;面部,字符属性,行偏移,列偏移
Db 0b3h,94h,-1,0 ;天线,字符属性,行偏移,列偏移
db 0b1h,11h,-4,30 ;大海
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-2
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 0b1h,11h,0,-1
db 03h,0eh,-8,16 ;星星
Db 03h,0eh,-1,0
Db 03h,0eh,0,6