Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- START ORG 0 ;asm file to tack omnto arduino hex or bin file for uploading into nano.
- seq
- req
- ;seq
- ldi $03 ;careful, we have some nops up there.
- phi 2 ;R2 is stack pointer
- ldi $45
- plo 2 ;R2=stack pointer now points to $00ff
- sex 2 ;X now pnts to R2, the stack pointer. 00ff
- loop0
- ldi $0f ;want output this byte on channel 1
- ;stxd
- ;stxd
- inc 2
- ;str 2
- loop1
- nop
- nop
- ;out 1
- ;inp 3
- lbr highadr
- ORG $345
- DB $11,$22,$33,$44,$55
- ORG $3fb
- nop
- nop
- nop
- nop
- nop
- ORG $4000
- highadr
- ldi $01
- phi 7
- lbr loop1
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement