home *** CD-ROM | disk | FTP | other *** search
- fill2 stx loop+1 ;save low byte into STA instruction
- sty loop+2 ;save high byte into STA instruction
- lda #$00 ;Acc. holds value to store in block
- tay ;set index register to zero
- ;
- loop2 sta $0000,y ;save value of Acc. into memory
- iny ;move index pointer up one
- bne loop2 ;keep going till INY sets zero flag
- rts ;now we're done, return to caller
-