Skip to content

Commit 1cb00fa

Browse files
Merge pull request #233 from acwright/master
Adopt optimizations
2 parents bbda1ea + de5aafe commit 1cb00fa

6 files changed

Lines changed: 12 additions & 29 deletions

File tree

ac6502/ac6502.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2022-2026 Willis Blackburn
1+
# SPDX-FileCopyrightText: 2022-2026 Willis Blackburn / 2026 A.C. Wright
22
#
33
# SPDX-License-Identifier: MIT
44
#

ac6502/ac6502.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn
1+
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn / 2026 A.C. Wright
22
;
33
; SPDX-License-Identifier: MIT
44
;

ac6502/ac6502_extension.s

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn
1+
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn / 2026 A.C. Wright
22
;
33
; SPDX-License-Identifier: MIT
44
;
@@ -48,16 +48,10 @@ ex_statement_name_table:
4848

4949
; Helper PVM fragments for 3- and 4-argument statements.
5050

51-
ex_pvm_arg_3:
52-
CALL pvm_expression
53-
ARGSEP
54-
CALL pvm_expression
55-
ARGSEP
56-
JUMP pvm_expression
57-
5851
ex_pvm_arg_4:
5952
CALL pvm_expression
6053
ARGSEP
54+
ex_pvm_arg_3:
6155
CALL pvm_expression
6256
ARGSEP
6357
CALL pvm_expression

ac6502/ac6502_init.s

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn
1+
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn / 2026 A.C. Wright
22
;
33
; SPDX-License-Identifier: MIT
44
;
5-
; ac6502 BASIC workspace (buffers and interpreter stacks) and the
6-
; target-specific one-time initialization hook. All mutable storage is
7-
; placed in the BSS segment so __BSS_SIZE__ correctly reflects how much
8-
; RAM is consumed before the user program area. BASIC's program_ptr is
9-
; computed from __BSS_RUN__ + __BSS_SIZE__ (see program.s).
5+
; ac6502 BASIC workspace (buffers and interpreter stacks). All mutable
6+
; storage is placed in the BSS segment so __BSS_SIZE__ correctly reflects
7+
; how much RAM is consumed before the user program area. BASIC's
8+
; program_ptr is computed from __BSS_RUN__ + __BSS_SIZE__ (see program.s).
109
;
1110
; See https://github.com/acwright/6502 for more info
1211

@@ -26,14 +25,4 @@ line_buffer: .res BUFFER_SIZE
2625
stack: .res PRIMARY_STACK_SIZE
2726
op_stack: .res OP_STACK_SIZE
2827

29-
.segment "ONCE"
30-
31-
; initialize_target is invoked from the cartridge startup after BIOS
32-
; hardware has been initialized and interrupts have been enabled. All
33-
; we need to do here is display the BASIC banner; I/O goes through the
34-
; BIOS via Chrout / Chrin.
35-
36-
initialize_target:
37-
jmp display_startup_banner
38-
3928
.code

ac6502/ac6502_io.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn
1+
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn / 2026 A.C. Wright
22
;
33
; SPDX-License-Identifier: MIT
44

ac6502/ac6502_startup.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn
1+
; SPDX-FileCopyrightText: 2022-2026 Willis Blackburn / 2026 A.C. Wright
22
;
33
; SPDX-License-Identifier: MIT
44
;
@@ -23,7 +23,7 @@ startup:
2323
; Leaves interrupts disabled; caller must CLI.
2424
jsr Beep ; Play the startup beep
2525
cli ; Enable interrupts (keyboard, serial RX)
26-
jsr initialize_target ; BASIC-side target init (banner, etc.)
26+
jsr display_startup_banner ; Display the BASIC banner
2727
jmp main ; Enter the BASIC REPL (never returns)
2828

2929
; IRQ / NMI trampolines -- dispatch through the RAM vectors that

0 commit comments

Comments
 (0)