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

Unable to locate SWR on a Watford Electronic ROM/RAM board #6

Open
rjpontefract opened this issue Oct 24, 2022 · 0 comments
Open

Unable to locate SWR on a Watford Electronic ROM/RAM board #6

rjpontefract opened this issue Oct 24, 2022 · 0 comments

Comments

@rjpontefract
Copy link

rjpontefract commented Oct 24, 2022

I tried running beeb-step on my Model B with a Watford Electronics ROM/RAM board which has one 16K static RAM at slot E and 128K of DRAM providing SWR in slots 0 through 7. As it stands the beeb-step demo can't locate enough SWR to run as it needs 4 slots and fails to locate any of the SWR in slots 0 through 7.

I made a couple of modifications to swr.asm to make it work.

In the loop where it scans for SWR I add the following to program the latch used by the WE board:

    ; scan for roms
    ldx #15
.rom_loop
    stx &f4:stx &fe30   ; select rom bank
    sta &ff30,x         ; Watford ROM/RAM board 
    ldy #0      ; assume rom
    lda &8008   ; read byte

and in .swr_select_slot and .swr_select_bank:

    sta &f4
    tax                 ; Watford ROM/RAM board
    sta &ff30,x         ; Watford ROM/RAM board
    sta swr_slot_selected
    sta &fe30
    tax                 ; Watford ROM/RAM board
    sta &ff30,x         ; Watford ROM/RAM board
;    cli

That enables it (and presumably any other BitShifters demo that uses swr.asm) to work with the WE board.

Hope that helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant