mirror of
https://github.com/michaelcmartin/Ophis.git
synced 2024-05-29 00:41:29 +00:00
Documentation and examples reorganization
This commit is contained in:
parent
cc9acf3ce4
commit
07f807d680
BIN
doc/a2blink.map
BIN
doc/a2blink.map
Binary file not shown.
Binary file not shown.
BIN
doc/a2normal.map
BIN
doc/a2normal.map
Binary file not shown.
|
@ -1,40 +0,0 @@
|
||||||
.word $0801
|
|
||||||
.org $0801
|
|
||||||
|
|
||||||
.scope
|
|
||||||
.word _next, 10 ; Next line and current line number
|
|
||||||
.byte $9e," 2064",0 ; SYS 2064
|
|
||||||
_next: .word 0 ; End of program
|
|
||||||
.scend
|
|
||||||
|
|
||||||
.advance $0810
|
|
||||||
|
|
||||||
.require "kernal.oph"
|
|
||||||
|
|
||||||
.data zp
|
|
||||||
.org $0002
|
|
||||||
|
|
||||||
.text
|
|
||||||
|
|
||||||
.scope
|
|
||||||
; Cache BASIC's zero page at top of available RAM.
|
|
||||||
ldx #$7E
|
|
||||||
* lda $01, x
|
|
||||||
sta $CF81, x
|
|
||||||
dex
|
|
||||||
bne -
|
|
||||||
|
|
||||||
jsr _main
|
|
||||||
|
|
||||||
; Restore BASIC's zero page and return control.
|
|
||||||
|
|
||||||
ldx #$7E
|
|
||||||
* lda $CF81, x
|
|
||||||
sta $01, x
|
|
||||||
dex
|
|
||||||
bne -
|
|
||||||
rts
|
|
||||||
|
|
||||||
_main:
|
|
||||||
; Program follows...
|
|
||||||
.scend
|
|
|
@ -1,67 +0,0 @@
|
||||||
; KERNAL routine aliases (C64)
|
|
||||||
|
|
||||||
.alias acptr $ffa5
|
|
||||||
.alias chkin $ffc6
|
|
||||||
.alias chkout $ffc9
|
|
||||||
.alias chrin $ffcf
|
|
||||||
.alias chrout $ffd2
|
|
||||||
.alias ciout $ffa8
|
|
||||||
.alias cint $ff81
|
|
||||||
.alias clall $ffe7
|
|
||||||
.alias close $ffc3
|
|
||||||
.alias clrchn $ffcc
|
|
||||||
.alias getin $ffe4
|
|
||||||
.alias iobase $fff3
|
|
||||||
.alias ioinit $ff84
|
|
||||||
.alias listen $ffb1
|
|
||||||
.alias load $ffd5
|
|
||||||
.alias membot $ff9c
|
|
||||||
.alias memtop $ff99
|
|
||||||
.alias open $ffc0
|
|
||||||
.alias plot $fff0
|
|
||||||
.alias ramtas $ff87
|
|
||||||
.alias rdtim $ffde
|
|
||||||
.alias readst $ffb7
|
|
||||||
.alias restor $ff8a
|
|
||||||
.alias save $ffd8
|
|
||||||
.alias scnkey $ff9f
|
|
||||||
.alias screen $ffed
|
|
||||||
.alias second $ff93
|
|
||||||
.alias setlfs $ffba
|
|
||||||
.alias setmsg $ff90
|
|
||||||
.alias setnam $ffbd
|
|
||||||
.alias settim $ffdb
|
|
||||||
.alias settmo $ffa2
|
|
||||||
.alias stop $ffe1
|
|
||||||
.alias talk $ffb4
|
|
||||||
.alias tksa $ff96
|
|
||||||
.alias udtim $ffea
|
|
||||||
.alias unlsn $ffae
|
|
||||||
.alias untlk $ffab
|
|
||||||
.alias vector $ff8d
|
|
||||||
|
|
||||||
; Character codes for the colors.
|
|
||||||
.alias color'0 144
|
|
||||||
.alias color'1 5
|
|
||||||
.alias color'2 28
|
|
||||||
.alias color'3 159
|
|
||||||
.alias color'4 156
|
|
||||||
.alias color'5 30
|
|
||||||
.alias color'6 31
|
|
||||||
.alias color'7 158
|
|
||||||
.alias color'8 129
|
|
||||||
.alias color'9 149
|
|
||||||
.alias color'10 150
|
|
||||||
.alias color'11 151
|
|
||||||
.alias color'12 152
|
|
||||||
.alias color'13 153
|
|
||||||
.alias color'14 154
|
|
||||||
.alias color'15 155
|
|
||||||
|
|
||||||
; ...and reverse video
|
|
||||||
.alias reverse'on 18
|
|
||||||
.alias reverse'off 146
|
|
||||||
|
|
||||||
; ...and character set
|
|
||||||
.alias upper'case 142
|
|
||||||
.alias lower'case 14
|
|
Binary file not shown.
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
.scope
|
.scope
|
||||||
.word _next, 10 ; Next line and current line number
|
.word _next, 10 ; Next line and current line number
|
||||||
.byte $9e," 2064",0 ; SYS 2064
|
.byte $9e," 2062",0 ; SYS 2064
|
||||||
_next: .word 0 ; End of program
|
_next: .word 0 ; End of program
|
||||||
.scend
|
.scend
|
||||||
|
|
||||||
.advance 2064
|
.advance 2062
|
||||||
|
|
||||||
.require "kernal.oph"
|
.require "../platform/c64kernal.oph"
|
|
@ -1,4 +1,5 @@
|
||||||
.include "c64-2.oph"
|
.include "../platform/c64_0.oph"
|
||||||
|
.require "../platform/c64kernal.oph"
|
||||||
|
|
||||||
.data
|
.data
|
||||||
.org $C000
|
.org $C000
|
|
@ -1,4 +1,4 @@
|
||||||
.require "../stella.oph"
|
.require "../../platform/stella.oph"
|
||||||
.outfile "hi_stella.bin"
|
.outfile "hi_stella.bin"
|
||||||
|
|
||||||
.data
|
.data
|
|
@ -1,14 +0,0 @@
|
||||||
.include "../c64_0.oph"
|
|
||||||
.include "../c64kernal.oph"
|
|
||||||
|
|
||||||
.outfile "hello.prg"
|
|
||||||
|
|
||||||
ldy #$00
|
|
||||||
* lda text, y
|
|
||||||
beq +
|
|
||||||
jsr chrout
|
|
||||||
iny
|
|
||||||
bne -
|
|
||||||
* rts
|
|
||||||
|
|
||||||
text: .byte "HELLO, C64 WORLD!", 13, 0
|
|
Loading…
Reference in New Issue
Block a user