mirror of
https://github.com/cc65/cc65.git
synced 2024-11-06 15:06:07 +00:00
31e4d80ac8
git-svn-id: svn://svn.cc65.org/cc65/trunk@1833 b7a2c559-68d2-44c3-8de9-860c34a00d81
28 lines
430 B
ArmAsm
28 lines
430 B
ArmAsm
;
|
|
; Maciej 'YTM/Elysium' Witkowiak <ytm@elysium.pl>
|
|
; 23.12.2002
|
|
;
|
|
; Zero the bss segment.
|
|
;
|
|
|
|
.export zerobss
|
|
.import __BSS_RUN__, __BSS_SIZE__
|
|
|
|
.include "../inc/jumptab.inc"
|
|
.include "../inc/geossym.inc"
|
|
|
|
.code
|
|
|
|
zerobss:
|
|
lda #<__BSS_SIZE__
|
|
ldx #>__BSS_SIZE__
|
|
sta r0L
|
|
stx r0H
|
|
lda #0
|
|
sta r2L
|
|
lda #<__BSS_RUN__
|
|
ldx #>__BSS_RUN__
|
|
sta r1L
|
|
stx r1H
|
|
jmp FillRam
|