Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidying Brother. #63

Merged
merged 2 commits into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
brotherwp1.img
kayproii.img
nc200.img
wp2450.img
wp2450ds.img
fail-if-no-assets: false

Expand All @@ -70,7 +71,7 @@ jobs:
brotherwp1.img
kayproii.img
nc200.img
wp2450ds.img
wp2450.img
tag_name: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
)

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 //...
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
20 changes: 10 additions & 10 deletions arch/wp2450ds/BUILD → arch/brother/wp2450/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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 -----------------------------------------------------------------
Expand All @@ -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"
],
)
Expand All @@ -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",
],
)

Expand All @@ -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",
]
)
Expand All @@ -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",
],
)
Expand All @@ -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",
],
)
Expand Down Expand Up @@ -185,7 +185,7 @@ unix2cpm(

diskimage(
name = "diskimage",
format = "brother-wp2450ds",
format = "brother-wp2450",
bootfile = ":bootfile_img",
map = {
"-readme.txt": ":readme",
Expand Down
2 changes: 1 addition & 1 deletion arch/wp2450ds/README.md → arch/brother/wp2450/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion arch/wp2450ds/bios.z80 → arch/brother/wp2450/bios.z80
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

maclib cpm
maclib cpmish
maclib wp2450ds
maclib wp2450
maclib addresses

extrn TTYINIT
Expand Down
2 changes: 1 addition & 1 deletion arch/wp2450ds/boot.z80 → arch/brother/wp2450/boot.z80
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions arch/wp2450ds/tty.z80 → arch/brother/wp2450/tty.z80
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion diskdefs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading