RosettaCodeData/Task/Get-system-command-output/68000-Assembly/get-system-command-output-2.68000
2023-07-01 13:44:08 -04:00

10 lines
188 B
Text

macro CloneByte 1
;\1 must be a data register.
;copies the lowest byte to all 4 bytes.
move.b \1,-(SP)
LSL.L #8,\1
move.b (SP)+,\1
pushWord \1
SWAP \1
popWord \1
endm