;Program name: task4
;Author: Tony
;Date: 11 June 2009
;Purpose: To create 3 single byte variables in SRAM called NUM1, NUM2 and NUM3...
.include "8515def.inc" ;Include file contains all register addresses
ldi num2, high (RAMEND) ;high(RAMEND) is higher byte of $025F which is $02
out SPH num2 ;SPH loaded with $02
ldi num1, low (RAMEND) ;low (RAMEND) is lower byte
out SPL num1 ;SPL LOADED WITH $5F
Start
push num2 ;Push num2 to stack, same sp decrements again
Finish:
rjmp Finish ;End of program