本帖最后由 eason77 于 2020-6-11 15:32 编辑
.mmregs
.model call=c55_std
.model mem=large
.global x
.bss x,1,0,0
.sym x,x,4,2, 16
.global y
.bss y,1,0,0
.sym y,y, 4, 2, 16
.global z
.bss z,1,0,0
.sym z,z, 4, 2, 16
.sect ".text"
.align 4
.global start
.sym start,start, 36, 2, 0
start:
MOV #2, *(#y)
MOV #1, *(#x)
L1:
MOV *(#y), AR1
ADD *(#x), AR1, AR1
MOV AR1, *(#z)
B L1
.asm格式的,需要改什么地方呢,求大神
|