我对68k的汇编编程非常新颖。我正在使用Easy68k。 我有一个计划: ORG $1000
START:
* Put program code here
lea MSG,a1 ; loads MSG into address register a1
move.b #14,d0 ; 14 gets coverted to hex E
trap #15
我有一个68k大会程序,计算3x3阵列的对角线的值的平均值并将其存储。 ORG $1000
START: ; first instruction of program
* Put program code here
move.w n,d6 ; d6 = 0000 0003
clr.l d7 ; sum = 0
move.w #2,d4
间接寻址的工作,我有这样的代码: loop2
move.b (a4)+,d3 * moving the morse code array input to d3
muls #5,d3
add.b $d3(a6),d3 * moving the character in morse code array to d4
move.b d3,d4