From 090419262a79b0413d3da8f8550d31a71270f4f6 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Sun, 6 Oct 2019 18:16:16 +0200 Subject: [PATCH] redirected NEWSTT to RUN, should provide some compatibility --- STATUS.md | 2 +- c64/basic/a7ae.newstt.s | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/STATUS.md b/STATUS.md index 53f37638..4d338117 100644 --- a/STATUS.md +++ b/STATUS.md @@ -79,7 +79,7 @@ Not all of them - only these we want to have implemented. | `$A533` | LINKPRG | DONE | | | `$A659` | set txt ptr | NOT DONE | | | `$A68E` | RUNC | DONE | | -| `$A7AE` | NEWSTT | NOT DONE | | +| `$A7AE` | NEWSTT | PARTIAL | redirected to RUN command | | `$AB1E` | STROUT | DONE | | | `$BDCD` | LINPRT | DONE | temporary implementation | | `$E3BF` | INIT | NOT DONE | | diff --git a/c64/basic/a7ae.newstt.s b/c64/basic/a7ae.newstt.s index 542e7bc6..6dde6ca2 100644 --- a/c64/basic/a7ae.newstt.s +++ b/c64/basic/a7ae.newstt.s @@ -1,8 +1,18 @@ -// XXX provide documentation and implementation -// see: https://www.lemon64.com/forum/viewtopic.php?t=64721&sid=bc400a5a6d404f8f092e4d32a92f5de7 -// https://www.lemon64.com/forum/viewtopic.php?t=70680&sid=3ff66caf7f5fdf2a3c2ff2ee31fc3fd8 -// https://codebase64.org/doku.php?id=base:assembling_your_own_cart_rom_image +// Well-known BASIC routine, described in: +// +// - [CM64] Compute's Mapping the Commodore 64 - page 97 +// - https://www.lemon64.com/forum/viewtopic.php?t=64721&sid=bc400a5a6d404f8f092e4d32a92f5de7 +// - https://www.lemon64.com/forum/viewtopic.php?t=70680&sid=3ff66caf7f5fdf2a3c2ff2ee31fc3fd8 +// - https://codebase64.org/doku.php?id=base:assembling_your_own_cart_rom_image NEWSTT: - STUB_IMPLEMENTATION() + + // XXX Real implementation is more complicated, it's actually a part + // of the BASIC main loop. It is, however, often called by various + // utilities to simply run the software which was just loaded or + // uncompressed. + + // For now, let's cheat a little - this should provide some compatibility: + + jmp cmd_run