I
Ivar
Guest
Haluan simuloida alle ARM kokoonpano ohjelma uvision3:
Code:
ALUE HelloW, KOODI, VainLuku
SWI_WriteC EQU & 0
SWI_Exit EQU & 11ENTRY
START ADR r1, TEKSTI
LOOP LDRB r0, [r1], # 1
CMP R0, # 0
SIKA SWI_WriteC
BNE LOOP
SWI SWI_Exit
TEXT = "Hei, maailma!", & 0a, & 0D, 0
END
Code:
ALUE HelloW, KOODI, VainLuku
SWI_WriteC EQU & 0
SWI_Exit EQU & 11ENTRY
START ADR r1, TEKSTI
LOOP LDRB r0, [r1], # 1
CMP R0, # 0
SIKA SWI_WriteC
BNE LOOP
SWI SWI_Exit
TEXT = "Hei, maailma!", & 0a, & 0D, 0
END