RosettaCodeData/Task/Get-system-command-output/68000-Assembly/get-system-command-output-2.68000

11 lines
199 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
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