add Reversi

This commit is contained in:
4am 2024-03-31 23:47:36 -04:00
parent 7d9a6ec67f
commit b4a93bb57e
70 changed files with 219 additions and 60 deletions

Binary file not shown.

BIN
res/ACTION.HGR/REVERSI Normal file

Binary file not shown.

8
res/ATTRACT/REVERSI Normal file
View File

@ -0,0 +1,8 @@
#
# Attract mode for REVERSI
# This file is automatically generated
#
REVERSI=A
[eof]

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

17
res/GAMEHELP/REVERSI Normal file
View File

@ -0,0 +1,17 @@
Place your pieces
Flip your opponent's pieces
< select >
press Return to place
[eof]

View File

@ -50,6 +50,7 @@
00001,PENSATE=Pensate
00001,PITSTOP.II=Pitstop II
10001,POOL=Pool
00001,REVERSI=Reversi
00001,ROCK.N.SCROLL=Rock & Scroll
00001,SEEGA=Seega
00001,SHUFFLEBOARD=Shuffleboard

View File

@ -4,6 +4,7 @@
KONO
MU.TORERE
REVERSI
SEEGA
ROCK.N.SCROLL
NINE.MENS

View File

@ -4,6 +4,7 @@
WORLD.KARATE
TOMAHAWK
REVERSI
TRACK.AND.FIELD
THE.DAM.BUSTERS
WARI

View File

@ -7,6 +7,7 @@ WARI
PENSATE
KONO
MU.TORERE
REVERSI
SEEGA
NINE.MENS
ROCK.N.SCROLL

View File

@ -13,6 +13,7 @@ THE.DAM.BUSTERS
ONE.ON.ONE
ROCK.N.SCROLL
AMER.CHALLENGE
REVERSI
POOL
PITSTOP.II
WARI

Binary file not shown.

BIN
res/TITLE.HGR/REVERSI Normal file

Binary file not shown.

Binary file not shown.

View File

@ -9,6 +9,7 @@
- Micro Golf
- Mu Torere
- Nine Men's Morris
- Reversi
- Rock & Scroll
- Seega
- Wari

View File

@ -0,0 +1,51 @@
# https://sourceforge.net/projects/acme-crossass/
ACME=acme
# https://github.com/mach-kernel/cadius
CADIUS=cadius
EXOMIZER=exomizer mem -lnone -P23 -f -q
BUILDDIR=build
DISKVOLUME=REVERSI
LOADER=$(BUILDDIR)/LOADER.SYSTEM\#FF2000
EXE=$(BUILDDIR)/REVERSI\#067E99
COMPRESSED=src/OBJ.X
SOURCES=$(wildcard src/*.a) $(COMPRESSED)
RES=$(wildcard res/*) $(wildcard ../common/res/*)
BUILDDISK=$(BUILDDIR)/$(DISKVOLUME).po
.PHONY: clean mount all
$(BUILDDISK): $(EXE) $(LOADER) $(RES)
$(LOADER): $(SOURCES) | $(BUILDDIR)
$(ACME) src/loader.a
$(CADIUS) REPLACEFILE "$(BUILDDISK)" "/$(DISKVOLUME)/" "$(LOADER)" -C
@touch "$@"
$(EXE): $(SOURCES) $(COMPRESSED) | $(BUILDDIR)
$(ACME) src/reversi.a
$(CADIUS) REPLACEFILE "$(BUILDDISK)" "/$(DISKVOLUME)/" "$(EXE)" -C
@touch "$@"
$(RES): $(BUILDDIR)
$(CADIUS) REPLACEFILE "$(BUILDDISK)" "/$(DISKVOLUME)/" "$@" -C
@touch "$@"
$(COMPRESSED):
$(EXOMIZER) src/OBJ@0x0800 -o "$@"
mount: $(BUILDDISK)
@open "$(BUILDDISK)"
clean:
rm -rf "$(BUILDDIR)"
$(BUILDDIR):
mkdir -p "$@"
$(CADIUS) CREATEVOLUME "$(BUILDDISK)" "$(DISKVOLUME)" 140KB -C
all: clean mount
.NOTPARALLEL:

BIN
res/ports/reversi/src/OBJ Normal file

Binary file not shown.

BIN
res/ports/reversi/src/OBJ.X Normal file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,25 @@
!cpu 6502
*=$2000
!to "build/LOADER.SYSTEM#FF2000",plain
!src "../common/src/constants.a"
!src "../common/src/macros.a"
+READ_ENTIRE_FILE parm_boot_open, parm_boot_read
jmp (entry)
parm_boot_open
!byte 3
!word filename
!word $2100
!byte 0
parm_boot_read
!byte 4
!byte 1
entry !word $7E99
!word $FFFF
!word 0
filename
!text 7,"REVERSI"

View File

@ -0,0 +1,33 @@
!cpu 6502
*=$7E99
!to "build/REVERSI#067E99",plain
!src "../common/src/constants.a"
!src "../common/src/macros.a"
jmp start
title
!bin "src/TITLE.7E9C"
compressed_data
!bin "src/OBJ.X"
DECRUNCH_FORWARDS = 1
SHOW_PROGRESS_DURING_DECRUNCH = 1
kExoProgressWidth = 10 ; depends on total size, max 38
!src "../common/src/exodecrunch.a"
start
+INIT_MACHINE
jsr title
!if * != $9FB3 {
!serious "Adjust prelaunch to patch JSR at ", *
}
jsr decrunch ; compressed data contains target address
jmp $404B
get_crunched_byte
lda compressed_data
inc get_crunched_byte+1
bne +
inc get_crunched_byte+2
+ rts

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2021565
!be24 2038791
!le16 571

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2009303
!be24 2026473
!le16 978

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2001334
!le16 308
!be24 2018356
!le16 322

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2002986
!le16 548
!be24 2020048
!le16 562

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2004948
!le16 514
!be24 2022050
!le16 528

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2007512
!le16 806
!be24 2024654
!le16 820

View File

@ -3,4 +3,4 @@
;
; This file is automatically generated
;
!word 25
!word 26

View File

@ -3,4 +3,4 @@
;
; This file is automatically generated
;
!word 36
!word 37

View File

@ -3,4 +3,4 @@
;
; This file is automatically generated
;
!word 40
!word 41

View File

@ -3,4 +3,4 @@
;
; This file is automatically generated
;
!word 55
!word 56

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2022136
!be24 2039362
!le16 306

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2022786
!be24 2040012
!le16 336

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2023122
!be24 2040348
!le16 303

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 1658616
!be24 1667104
!le16 69

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2012921
!be24 2030091
!le16 1640

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2022518
!be24 2039744
!le16 67

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2021553
!be24 2038779
!le16 12

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2020735
!be24 2037961
!le16 766

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2018827
!be24 2036039
!le16 229

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2010281
!be24 2027451
!le16 2640

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2014919
!le16 985
!be24 2032089
!le16 999

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2022442
!be24 2039668
!le16 76

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2021501
!be24 2038727
!le16 52

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2022585
!be24 2039811
!le16 201

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2019056
!be24 2036268
!le16 335

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2019391
!be24 2036603
!le16 89

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2019480
!be24 2036692
!le16 92

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2019572
!be24 2036784
!le16 175

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2019747
!le16 699
!be24 2036959
!le16 713

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2020446
!be24 2037672
!le16 285

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2020731
!be24 2037957
!le16 4

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2023425
!be24 2040651
!le16 2370

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2017024
!be24 2034208
!le16 491

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2017515
!le16 498
!be24 2034699
!le16 512

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2008318
!le16 985
!be24 2025474
!le16 999

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 524843
!be24 532523
!le16 8184

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 541219
!be24 548899
!le16 8184

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 533027
!be24 540707
!le16 8192

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2000474
!le16 860
!be24 2017470
!le16 886

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2001642
!le16 1344
!be24 2018678
!le16 1370

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2003534
!le16 1414
!be24 2020610
!le16 1440

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2005462
!le16 2050
!be24 2022578
!le16 2076

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2014561
!be24 2031731
!le16 358

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2015904
!be24 2033088
!le16 1120

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2018013
!le16 814
!be24 2035211
!le16 828

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2000064
!le16 410
!be24 2017044
!le16 426

19
src/prelaunch/reversi.a Normal file
View File

@ -0,0 +1,19 @@
;license:MIT
!cpu 6502
!to "build/PRELAUNCH.INDEXED/REVERSI",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$4C
sta $9FB3
jsr $7E99
+DISABLE_ACCEL
+RESET_VECTOR $100
jmp $9FB6
!if * > $1C0 {
!error "code is too large, ends at ", *
}