Initial Checkin
This commit is contained in:
commit
21bf94ba8b
|
@ -0,0 +1,5 @@
|
|||
*.lst
|
||||
*.map
|
||||
*.o
|
||||
*.rom
|
||||
*.jar
|
|
@ -0,0 +1,25 @@
|
|||
The MIT License
|
||||
|
||||
Copyright (c) 2014 Seth J. Morabito <web@loomcom.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
CA=ca65
|
||||
LD=ld65
|
||||
|
||||
all: monitor
|
||||
|
||||
monitor: monitor.o
|
||||
$(LD) -C symon.config -vm -m monitor.map -o monitor.rom monitor.o
|
||||
|
||||
monitor.o:
|
||||
$(CA) --listing -o monitor.o monitor.asm
|
||||
|
||||
clean:
|
||||
rm -f *.o *.rom *.map *.lst
|
|
@ -0,0 +1,21 @@
|
|||
# Loomcom 6502 ROM Monitor
|
||||
|
||||
**Version:** 0.1-alpha
|
||||
**Last Updated:** July 1, 2014
|
||||
|
||||
## 1.0 About
|
||||
|
||||
This project contains an experimental 6502 ROM monitor being developed
|
||||
for the [Symon 6502 Simulator] (http://github.com/sethm/symon) and
|
||||
associated hardware.
|
||||
|
||||
## 2.0 Assembly
|
||||
|
||||
Assembled with [CA65] (http://www.cc65.org/doc/ca65.html). Just
|
||||
type `make`!
|
||||
|
||||
## 3.0 License
|
||||
|
||||
This project is free software. It is distributed under the MIT
|
||||
License. Please see the file 'COPYING' for full details of the
|
||||
license.
|
|
@ -0,0 +1,31 @@
|
|||
;;
|
||||
;; Retrochallenge Summer 2014
|
||||
;; 6502 ROM Monitor
|
||||
;;
|
||||
|
||||
|
||||
;;************************************************************************
|
||||
;; Non-monitor code, e.g. BASIC, utilities, etc., resides
|
||||
;; in the bottom 14KB of ROM
|
||||
;;************************************************************************
|
||||
.segment "CODE"
|
||||
.org $C000
|
||||
|
||||
;;************************************************************************
|
||||
;; ROM monitor code resides in the top 2KB of ROM
|
||||
;;************************************************************************
|
||||
.segment "MONITOR"
|
||||
.org $FB00
|
||||
|
||||
START: LDA #$00 ; Set zero flag
|
||||
BEQ * ; Loop forever
|
||||
|
||||
;;************************************************************************
|
||||
;;
|
||||
;;************************************************************************
|
||||
.segment "VECTORS"
|
||||
.org $FFFA
|
||||
|
||||
.word START
|
||||
.word START
|
||||
.word START
|
|
@ -0,0 +1,18 @@
|
|||
MEMORY {
|
||||
RAM1: start = $0000, size = $8000;
|
||||
ROM1: start = $C000, size = $3B00, fill = yes;
|
||||
MONITOR: start = $FB00, size = $4FA, fill = yes;
|
||||
ROMV: start = $FFFA, size = $6, file = %O, fill = yes;
|
||||
}
|
||||
|
||||
SEGMENTS {
|
||||
CODE: load = ROM1, type = ro;
|
||||
DATA: load = ROM1, type = ro;
|
||||
MONITOR: load = MONITOR, type = ro;
|
||||
VECTORS: load = ROMV, type = ro;
|
||||
}
|
||||
|
||||
SYMBOLS {
|
||||
__STACKSIZE__ = $0300;
|
||||
}
|
||||
|
Loading…
Reference in New Issue