diff options
| author | Ian C <ianc@noddybox.co.uk> | 2025-10-11 16:51:33 +0100 |
|---|---|---|
| committer | Ian C <ianc@noddybox.co.uk> | 2025-10-11 16:51:33 +0100 |
| commit | 5e9f2db5086d9be30d91e345e927be994988fd38 (patch) | |
| tree | eb0a81264cfcbcae72f01d617c7591008f718e6f /hardwire.asm | |
Diffstat (limited to 'hardwire.asm')
| -rw-r--r-- | hardwire.asm | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/hardwire.asm b/hardwire.asm new file mode 100644 index 0000000..f09a25d --- /dev/null +++ b/hardwire.asm @@ -0,0 +1,54 @@ +; hardwire - Puzzle game for Atari VCS +; +; Copyright (C) 2025 Ian Cowburn (ianc@noddybox.demon.co.uk) +; +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see <http://www.gnu.org/licenses/>. +; +; ------------------------------------------------------------------------- +; +; Code +; + processor 6502 + option output-file,hardwire.a26 + + include vcs.asm + + org $f000 + + ; Set up stack pointer +start: + sei + cld + ldx #$ff + txs + + ; Initialise page zero + lda #0 +.zero: + sta $0,x + dex + bne zero + + ; Set background + lda #$3e + clc +.loop: + sta COLUBK + adc #1 + jmp loop + + ; Set start adresses and pad ROM + org $fffc + word start + word start |
