File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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#
Original file line number Diff line number Diff line change 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;
Original file line number Diff line number Diff line change 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-
5851ex_pvm_arg_4:
5952 CALL pvm_expression
6053 ARGSEP
54+ ex_pvm_arg_3:
6155 CALL pvm_expression
6256 ARGSEP
6357 CALL pvm_expression
Original file line number Diff line number Diff line change 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
2625stack: .res PRIMARY_STACK_SIZE
2726op_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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments