Unnamed
public text v1 · immutable; this is my fist self written asm file
.NOLIST
.INCLUDE "m8def.inc"
.LIST
; global definitions
.equ WORDLEN = 2
.equ LastAddress = RAMEND * WORDLEN
; register definitions
.def Register0 = R16
.def Register1 = R17
.def RegisterTemp = R18
; start of the program
ldi Register0, 150
ldi Register1, 220
; mov Register0, Register1
ldi ZH, high(LastAddress)
ldi ZL, low(LastAddress)
st Z, Register0
; adiw ZL, 1
ld Register1, Z