diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 08a6839..766b943 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -36,5 +36,5 @@ jobs: bazel-bin/arch/brotherwp1/diskimage.img bazel-bin/arch/kayproii/diskimage.img bazel-bin/arch/nc200/diskimage.img - bazel-bin/arch/wp2450ds/diskimage.img + bazel-bin/arch/wp2450/diskimage.img \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84aa9e4..c35d95c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,7 @@ jobs: brotherwp1.img kayproii.img nc200.img + wp2450.img wp2450ds.img fail-if-no-assets: false @@ -70,7 +71,7 @@ jobs: brotherwp1.img kayproii.img nc200.img - wp2450ds.img + wp2450.img tag_name: dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/BUILD b/BUILD index 4b12847..d365648 100644 --- a/BUILD +++ b/BUILD @@ -7,11 +7,11 @@ filegroup( srcs = [ "//arch/brother/pn8510:diskimage", "//arch/brother/pn8800:diskimage", + "//arch/brother/wp2450:diskimage", "//arch/brotherop2:diskimage", "//arch/brotherwp1:diskimage", "//arch/kayproii:diskimage", "//arch/nc200:diskimage", - "//arch/wp2450ds:diskimage", ] ) diff --git a/Makefile b/Makefile index b7339d8..715cbaa 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ all: bazel test -c dbg //... bazel build -c opt //:diskimages for a in $$(dirname bazel-bin/arch/*/diskimage.img bazel-bin/arch/*/*/diskimage.img); do \ - f=$$(basename $$a); ln -sf $$a/diskimage.img $$f.img; chmod a+rw $$f.img; done + f=$$(basename $$a); cp $$a/diskimage.img $$f.img; chmod +rw $$f.img; done verbose: bazel test -s -c dbg //... diff --git a/README.md b/README.md index 75dfac0..d945229 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Currently it supports these platforms: - [the Kaypro II](arch/kayproii/README.md) - [the Brother WP-1 typewriter (and probably others)](arch/brotherwp1/README.md) - [the Brother LW-30 typewriter (and probably others)](arch/brotherop2/README.md) - - [the Brother WP-2450DS typewriter (and probably others)](arch/wp2450ds/README.md) + - [the Brother WP-2450DS typewriter (and probably others)](arch/brother/wp2450/README.md) - [the Brother PN-8510MDS SuperPowerNote laptop (and probably others)](arch/brother/pn8510/README.md) - [the Brother PN-8800FXB SuperPowerNote laptop (and probably others)](arch/brother/pn8800/README.md) diff --git a/arch/wp2450ds/BUILD b/arch/brother/wp2450/BUILD similarity index 89% rename from arch/wp2450ds/BUILD rename to arch/brother/wp2450/BUILD index a75e640..53eae0d 100644 --- a/arch/wp2450ds/BUILD +++ b/arch/brother/wp2450/BUILD @@ -21,17 +21,17 @@ package(default_visibility = ["//visibility:public"]) genrule( name = "keytab_inc", - tools = [ "//arch/wp2450ds/utils:mkkeytab" ], + tools = [ "//arch/brother/wp2450/utils:mkkeytab" ], outs = [ "keytab.inc" ], - cmd = "$(location //arch/wp2450ds/utils:mkkeytab) > $@" + cmd = "$(location //arch/brother/wp2450/utils:mkkeytab) > $@" ) genrule( name = "font_inc", - tools = [ "//arch/wp2450ds/utils:fontconvert" ], + tools = [ "//arch/brother/wp2450/utils:fontconvert" ], srcs = [ "//utils:6x7font.bdf" ], outs = [ "font.inc" ], - cmd = "$(location //arch/wp2450ds/utils:fontconvert) $< > $@" + cmd = "$(location //arch/brother/wp2450/utils:fontconvert) $< > $@" ) # Libraries ----------------------------------------------------------------- @@ -48,7 +48,7 @@ zmac( "//include:z180.lib", "//arch/common/utils:tty.lib", "//arch/common/utils:print.lib", - "//arch/wp2450ds/include:wp2450ds.lib", + "//arch/brother/wp2450/include:wp2450.lib", ":font_inc" ], ) @@ -63,7 +63,7 @@ zmac( "//include:z180.lib", "//arch/common/utils:upd765.lib", "//arch/common/utils:deblocker.lib", - "//arch/wp2450ds/include:wp2450ds.lib", + "//arch/brother/wp2450/include:wp2450.lib", ], ) @@ -75,7 +75,7 @@ zmac( "//include:cpm.lib", "//include:cpmish.lib", "//include:z180.lib", - "//arch/wp2450ds/include:wp2450ds.lib", + "//arch/brother/wp2450/include:wp2450.lib", ":keytab_inc", ] ) @@ -94,7 +94,7 @@ zmac( "//include:cpm.lib", "//include:cpmish.lib", "//include:z180.lib", - "//arch/wp2450ds/include:wp2450ds.lib", + "//arch/brother/wp2450/include:wp2450.lib", ":addresses", ], ) @@ -119,7 +119,7 @@ zmac( "//include:cpm.lib", "//include:cpmish.lib", "//include:z180.lib", - "//arch/wp2450ds/include:wp2450ds.lib", + "//arch/brother/wp2450/include:wp2450.lib", ":addresses", ], ) @@ -185,7 +185,7 @@ unix2cpm( diskimage( name = "diskimage", - format = "brother-wp2450ds", + format = "brother-wp2450", bootfile = ":bootfile_img", map = { "-readme.txt": ":readme", diff --git a/arch/wp2450ds/README.md b/arch/brother/wp2450/README.md similarity index 97% rename from arch/wp2450ds/README.md rename to arch/brother/wp2450/README.md index 51776cc..78b533c 100644 --- a/arch/wp2450ds/README.md +++ b/arch/brother/wp2450/README.md @@ -41,7 +41,7 @@ How to use it Build cpmish. -Use `dd` or your favourite disk imager to write the `wp2450ds.img` file to a DD +Use `dd` or your favourite disk imager to write the `wp2450.img` file to a DD 3.5" floppy. You're probably best off formatting this on the machine itself, to get optimal interleave for the very slow machine. diff --git a/arch/wp2450ds/bios.z80 b/arch/brother/wp2450/bios.z80 similarity index 99% rename from arch/wp2450ds/bios.z80 rename to arch/brother/wp2450/bios.z80 index b6e4ffa..26684b0 100644 --- a/arch/wp2450ds/bios.z80 +++ b/arch/brother/wp2450/bios.z80 @@ -8,7 +8,7 @@ maclib cpm maclib cpmish - maclib wp2450ds + maclib wp2450 maclib addresses extrn TTYINIT diff --git a/arch/wp2450ds/boot.z80 b/arch/brother/wp2450/boot.z80 similarity index 99% rename from arch/wp2450ds/boot.z80 rename to arch/brother/wp2450/boot.z80 index c9f2401..2511ed9 100644 --- a/arch/wp2450ds/boot.z80 +++ b/arch/brother/wp2450/boot.z80 @@ -6,7 +6,7 @@ ; gets loaded with BBR=CBR=0x60, CBAR=0x55, which means that DRAM from ; physical addresses 0x65000 to 0x6ffff is mapped to logical 0x5000 to 0xffff. - maclib wp2450ds + maclib wp2450 maclib cpmish maclib cpm maclib addresses diff --git a/arch/wp2450ds/fat.z80 b/arch/brother/wp2450/fat.z80 similarity index 100% rename from arch/wp2450ds/fat.z80 rename to arch/brother/wp2450/fat.z80 diff --git a/arch/wp2450ds/include/BUILD b/arch/brother/wp2450/include/BUILD similarity index 100% rename from arch/wp2450ds/include/BUILD rename to arch/brother/wp2450/include/BUILD diff --git a/arch/wp2450ds/include/wp2450ds.lib b/arch/brother/wp2450/include/wp2450.lib similarity index 100% rename from arch/wp2450ds/include/wp2450ds.lib rename to arch/brother/wp2450/include/wp2450.lib diff --git a/arch/wp2450ds/keyboard.z80 b/arch/brother/wp2450/keyboard.z80 similarity index 99% rename from arch/wp2450ds/keyboard.z80 rename to arch/brother/wp2450/keyboard.z80 index c36142d..b9d53ca 100644 --- a/arch/wp2450ds/keyboard.z80 +++ b/arch/brother/wp2450/keyboard.z80 @@ -2,7 +2,7 @@ ; This file is distributable under the terms of the 2-clause BSD license. ; See COPYING.cpmish in the distribution root directory for more information. - maclib wp2450ds + maclib wp2450 maclib cpmish maclib cpm diff --git a/arch/wp2450ds/tty.z80 b/arch/brother/wp2450/tty.z80 similarity index 99% rename from arch/wp2450ds/tty.z80 rename to arch/brother/wp2450/tty.z80 index 15ad08b..c9e676a 100644 --- a/arch/wp2450ds/tty.z80 +++ b/arch/brother/wp2450/tty.z80 @@ -1,10 +1,10 @@ -; Brother WP2450DS cpmish BIOS © 2020 David Given +; Brother wp2450 cpmish BIOS © 2020 David Given ; This file is distributable under the terms of the 2-clause BSD license. ; See COPYING.cpmish in the distribution root directory for more information. maclib cpm maclib cpmish - maclib wp2450ds + maclib wp2450 extrn SYSIN extrn SYSOUT diff --git a/arch/wp2450ds/upd765.z80 b/arch/brother/wp2450/upd765.z80 similarity index 99% rename from arch/wp2450ds/upd765.z80 rename to arch/brother/wp2450/upd765.z80 index c63184f..4819f28 100644 --- a/arch/wp2450ds/upd765.z80 +++ b/arch/brother/wp2450/upd765.z80 @@ -6,7 +6,7 @@ ; gets loaded with BBR=CBR=0x60, CBAR=0x55, which means that DRAM from ; physical addresses 0x65000 to 0x6ffff is mapped to logical 0x5000 to 0xffff. - maclib wp2450ds + maclib wp2450 maclib cpmish maclib cpm diff --git a/arch/wp2450ds/utils/BUILD b/arch/brother/wp2450/utils/BUILD similarity index 100% rename from arch/wp2450ds/utils/BUILD rename to arch/brother/wp2450/utils/BUILD diff --git a/arch/wp2450ds/utils/fontconvert.c b/arch/brother/wp2450/utils/fontconvert.c similarity index 100% rename from arch/wp2450ds/utils/fontconvert.c rename to arch/brother/wp2450/utils/fontconvert.c diff --git a/arch/wp2450ds/utils/mkkeytab.c b/arch/brother/wp2450/utils/mkkeytab.c similarity index 100% rename from arch/wp2450ds/utils/mkkeytab.c rename to arch/brother/wp2450/utils/mkkeytab.c diff --git a/diskdefs b/diskdefs index 57eca03..913ab9b 100644 --- a/diskdefs +++ b/diskdefs @@ -68,7 +68,7 @@ end # Brother WP2450DS 720kB disk image # This is just a 720kB DOS disk with enough reserved sectors to allow # the CCP/BDOS/BIOS to live in the first two tracks. -diskdef brother-wp2450ds +diskdef brother-wp2450 seclen 512 tracks 80 sectrk 18