-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocal_add_1.asm
50 lines (43 loc) · 1.17 KB
/
local_add_1.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
;
; File generated by cc65 v 2.18 - Ubuntu 2.18-1
;
.fopt compiler,"cc65 v 2.18 - Ubuntu 2.18-1"
.setcpu "6502"
.smart on
.autoimport on
.case on
.debuginfo off
.importzp sp, sreg, regsave, regbank
.importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4
.macpack longbranch
.forceimport __STARTUP__
.export _main
; ---------------------------------------------------------------
; void __near__ main (void)
; ---------------------------------------------------------------
.segment "CODE"
.proc _main: near
.segment "CODE"
jsr decsp3
ldx #$00
lda #$0A
ldy #$02
sta (sp),y
ldx #$00
lda #$14
ldy #$01
sta (sp),y
ldy #$02
ldx #$00
lda (sp),y
jsr pushax
ldy #$03
ldx #$00
lda (sp),y
jsr tosaddax
ldx #$00
ldy #$00
sta (sp),y
jsr incsp3
rts
.endproc