Commit Graph

58 Commits

Author SHA1 Message Date
Terence Boldt 0f58e987f1 Update setup and instructions 2024-03-29 12:13:39 -04:00
Terence Boldt aa5910cee8
Initial Pico hardware support
* Added assemble.cmd for Windows.

In the long run, some (c)make-based cross-plafrom solution seems preferable.

* Fill up the menu page just like the other pages.

* Allow to assemble for different hardware types.

The first script parameter is used to set the ca65 symbol HW_TYPE. Without parameter, HW_TYPE is set to 0.

* Avoid unwanted i/o access.

Depending on the 6502, LDA addr,X and/or STA addr,X produce additional phantom reads. In order to avoid those phantom reads to do i/o access, I used the "classic" approach of moving those reads from page $C0 to page $BF.

* Made use of BIT instruction to access InputFlags from firmware.

Doing the same for access from disk-based software would require selfmodifying code as there's not bit <addr>,x instruction.

* Removed push/pop from GetByte.

After the replacing the rol instructions with bit instructions with a recent chnage, the only reason left to save a to the stack was setting the OutputFlags. But that can be done using x.

* Added InputFlags check for consistency.

* Added support for an alternative hardware type.

The new hardware type has simple UART-type interface. Beside the two data registers, there are only the two bits to indicate readability and writability of the data registers.

* Added another comminucation interface implementation.

Use ACM CDC (or another proprietary) USB serial device for communication.

Currently VID / PID of a Raspberry Pi Pico SDK CDC UART are hardcoded - see https://github.com/raspberrypi/usb-pid

* Revert "Avoid unwanted i/o access."

Neither the original hardware type nor the alternative hardware type have any read and write i/o port share addresses. Therefore phantom reads aren't an issue with those hardware types.

This reverts commit ae5cb754fb.

* Adapt to the different error signatures on Linux.

So far the code was only tested on Windows.

* Added implementation of the alternative hardware type.

The implemenation is based on a Raspberry Pi Pico - see https://github.com/a2retrosystems/A2retroNET

The new hardware type has a simple UART-type interface. Beside the two data registers, there are only the two bits to indicate readability and writability of the data registers.

* Modify the HD image for the alternative hardware type.

It is likely desirable to have two HD images for the two hardware types. And likely the apple2driver program should default to the right one based on its protocol setting. BUt given that the HD image(s) shouldn't be part of the actual Git repo anyhow, I don't do anything about this here and now.

* Fixed shell startup (?)

At least on the alternative hardware, this "blindly sending" a reset command causes the shell to be terminated right away:
The driver acknowldges the reset command with a zero byte - and that byte ends up being read by DumpOutput causing it to branch to endOutput.

Maybe that sending a reset command is beneficial on the original hardware. Then another .if is required. Or DumpOutput shouldn't quit on reading a zero byte - the shell handler doesn't seem to send it on purpose(?)

* Upate HD image with recent shell change.

* Fix shell shutdown (?)

At least on the alternative hardware, things happen this way:
1. The shell 'exit' command has ptyOut signal outputComplete and terminate. At this point, ptyIn is still blocked up to one second in ReadCharacter - and can therefore not react on outputComplete.
2. The outputComplete handler in ShellCommand sends a zero byte. This makes on the A2 DumpOutput return and the caller send a zero byte. ShellCommand must not return here as ptyIn is still blocked.
3. The zero byte from the A2 has ptyIn return from ReadCharacter, signal userCancelled and terminate.
4. ShellCommand can now return, but it must not send a zero byte, as the A2 is not expecting it - and will therefore later misinterpret it.

Maybe the original hardware needs another handling, then differentiation of behavior in shell.go becomes necessary.

* Moved boot text out of IIgs copyright message area.

Having the boot text start at the left border of the third line makes it look nice on the cold boot screen of all Apple II's - and there's where the user sees it for some time while waiting for the RPi to come up.

* Several adjustements:

- Get latest Go version as of now.
- Nowadays (?) GitHub 'git clone' seems to only work with a GitHub account. Therefore the zip download workaround. The becomes hopefully unnecessary soon with Go module magic.
- Use 'go mod tidy' to update .sum file for now.
- Error handling for an empty drive 2 is currently not exactly great, so download Total Replay for drive 2. Unfortunately there's no stable URL as of now.
- Use $USER and $HOME instead of hardcoded values.
- Removed deprecated syslog output directives.

* Added brief fork description.

* Added ProDOS-Utilities reference.

* Reverted back to using 'git clone'.

I've no idea why git acted up the other day :-( Now, everything is back to normal...

* Ignore Pico build directory.

* Updated from https://github.com/a2retrosystems/A2retroNET

* Updated from https://github.com/a2retrosystems/A2retroNET

At this point, nothing at all is done on an A2 reset. This can likely be improved. However, Apple2-IO-RPi doesn't seem to handle A2 reset exactly gracefully anyhow.

In general, it seems desirable to introduce some simple framing protocol - like SLIP - that allows to recover from an A2 reset in the middle of an Apple2-IO-RPi command execution.

Such a framing protocol would allow to introduce different frame types. One frame type could then be an A2 reset frame sent by the A2retroNET firmware.

* Make use of brand new stable Total Replay download URL.

Thanks to 4am :-)

* Fixed typos.

* Clone upstream ProDOS-Utilities.

My ProDOS-Utilities pull request was merged.

* Added support for boards without LED.

* Updated link.

* Adjusted to the current A2retroNET hardware.

* Removed support for the Pico W.

* Updated URL.

* Updated URL.

* Make use A2Pico library.

* Added link to A2Pico.

* Remove intermediates from repo.

* Build intermediates from Pico build.

* Have LED reflect status of logic ACM connection.

* Update upstream repo references.

* Adjust build instructions.

* Update README.md

* Fix build and update dependencies

* Fix binary comparison

* Fix firware bug on classic hardware

---------

Co-authored-by: Oliver Schmidt <ol.sc@web.de>
2024-02-05 22:49:09 -05:00
Terence Boldt 60a311549d
Update README.md 2023-01-28 10:23:27 -05:00
Terence Boldt 27b01d0925
Update README.md 2023-01-28 09:53:39 -05:00
Terence Boldt 382cfebc26
Update README.md 2023-01-08 22:50:22 -05:00
Terence Boldt 803d5f436c
Update README.md 2022-12-31 12:40:27 -05:00
Terence Boldt 9198e2ae6c
Update README.md 2022-02-28 20:59:47 -05:00
Terence Boldt f9dab0aff3
Update README.md 2022-02-22 10:49:36 -05:00
Hans Hübner 468dc6708b
Add contributor links 2022-02-20 22:27:21 +01:00
Hans Hübner 150177e3de
Fix name typo in README 2022-02-20 22:21:15 +01:00
Terence Boldt 00e412c552
Add contributions/thanks to README 2022-02-20 13:58:42 -05:00
Terence Boldt 8efc93a317
Update README.md 2022-02-17 20:12:41 -05:00
Terence Boldt a1ef730dac Update README for sixth prototype 2022-02-16 21:50:16 -05:00
Terence Boldt 8104e99cce
Update README.md 2022-02-15 04:06:03 -05:00
Terence Boldt 7e94421754
Update README.md 2022-02-09 07:07:50 -05:00
Terence Boldt c5d5118250
Update README.md 2022-02-07 06:11:01 -05:00
Terence Boldt 2c7be1dee1
Update README.md 2022-02-06 10:31:04 -05:00
Terence Boldt 342a4331af
Update README.md 2022-02-06 08:13:03 -05:00
Terence Boldt 3ee0978cfa
Move setup instructions to Discussions 2022-01-13 18:55:04 -05:00
Terence Boldt d3e7b4db3d Update README to use a2wifi select command 2021-12-31 08:48:12 -05:00
Terence Boldt 4c36b99282
Update README.md 2021-12-28 16:31:45 -05:00
Terence Boldt 4dee72b1c2
Update README.md 2021-11-29 19:54:52 -05:00
Terence Boldt de69c54007
Fix cursor and improve shell (#48)
* Fix cursor and improve shell

* Update README
2021-11-26 22:51:52 -05:00
Terence Boldt a929790624
Top fix (#47)
* Add workaround for bug in top command

* Update README with terminal emulation
2021-11-25 21:55:52 -05:00
Terence Boldt b2a463f3d6
Update README.md 2021-11-11 07:49:39 -05:00
Terence Boldt 00652eff8e
Update README.md 2021-11-07 09:05:21 -05:00
Terence Boldt 75a493143f
Update README.md 2021-11-05 22:56:30 -04:00
Terence Boldt b37855dbfd
Fix Codacy lint/security warnings 2021-11-03 05:33:09 -04:00
Terence Boldt d7ba88d87b
Update README.md 2021-10-31 14:38:12 -04:00
Terence Boldt a26b374ea5
Update roadmap 2021-10-13 07:31:19 -04:00
Terence Boldt 64441085bf
Update README.md 2021-10-11 11:23:23 -04:00
Terence Boldt 229daea2e1 Update setup instructions for newest version of Go 2021-10-11 09:02:54 -04:00
Terence Boldt 49f99c6c51 Update features and setup instructions 2021-10-06 20:40:08 -04:00
Terence Boldt a1a209d092 Update README for fifth revision of board 2021-07-28 05:41:17 -04:00
Terence Boldt 30dbc0ea61
Update README.md 2021-06-01 06:54:34 -04:00
Terence Boldt b8d03c8e5a
Update README.md 2021-05-31 20:46:55 -04:00
Terence Boldt cc560b972f Refactor Go code into packages 2021-05-30 08:43:57 -04:00
Terence Boldt 6b322f11ca
Update roadmap 2021-05-11 00:26:42 -04:00
figital db0d26c73c fixed dir name type 2021-05-10 19:24:51 -04:00
Terence Boldt e883a742c7
Update README.md 2021-03-29 08:47:21 -04:00
Terence Boldt 4629de29ea
Update roadmap and project status 2021-03-29 08:18:58 -04:00
Terence Boldt a16de00a13 Add bootable hard drive image 2021-03-28 17:16:31 -04:00
Terence Boldt 405f56966c
Update setup instructions 2021-03-28 17:00:08 -04:00
Terence Boldt 3411954a0c
Update project status 2021-03-28 10:56:47 -04:00
Terence Boldt d0355f627a Update README with latest status and roadmap 2021-03-23 21:27:03 -04:00
Terence Boldt daed9d2dd9 Update project status and image 2021-01-16 07:45:24 -05:00
Terence Boldt f6d1607a33 Update project status 2020-12-28 10:54:57 -05:00
Terence Boldt 9c0b548aab Add ProDOS date/time support 2020-12-15 21:05:12 -05:00
Terence Boldt c93b54c669 Update schematic/PCB to work with more EPROM types 2020-12-13 22:19:04 -05:00
Terence Boldt b0b077b1a2 Update project status and image 2020-12-10 23:13:12 -05:00