Comments (3)
Very interesting. I noticed a couple of things:
- The program is not exactly correct. On the first line
#FE
should be#BE
if you want a>
as a prompt. - The program does print out
HELLO ALL
, but then runsALL
as if it were typed in to the monitor (as you say). - As expected,
HELLO E003G
will return to BASIC. 1000G
is exactly the same length asHELLO
.
If you look at the Apple //e monitor ROM listings, the monitor entry code is at FF69
. One of the first things it does is JSR GETLNZ
, which is the same as the program above. It then decodes the command (and all hex numbers before it) and then executes it at FF82
with JSR TOSUB
. TOSUB
then executes the command through the jump table at FFE3
by pushing and address on the stack and then doing an RTS
. The G
command is implemented at FEB6
. The jump to the user address happens at FEBC
as an indirect jump through 003A
. But note that this is a JMP
not a JSR
. This means that when the program's RTS
happens, it's actually returning from the JSR TOSUB
. As commented at FF85
, this proceeds to process the next entry on the line—but that has been overwritten by the program. This is why anything after HELLO
is interpreted by the monitor.
Thus, I don't think there's actually anything wrong with the ROM here.
Hope that helps!
from apple2js.
I confirm the same happens with an Apple ][+ ROM from https://ftp.apple.asimov.net loaded into another emulator. That confirms there's nothing wrong with the ROM in Apple2js, and I think this issue could be closed.
from apple2js.
Glad to hear it.
from apple2js.
Related Issues (20)
- CATALOG Bug on Floppy Disk HOT 5
- Apple II DeskTop's triggering DHR Mono mode fails HOT 2
- State saving and recovery is not good when using a smart drive HOT 4
- Mocking board emulation
- ThunderClock is not interrupting. HOT 2
- Option to slow acceleration during audio playback HOT 3
- Loading a disk into Drive 2 reloads the disk from Drive 1 HOT 1
- how to exit fullscreen HOT 10
- Saving self-written program to file/localStorage? HOT 3
- Disabling Mouse Joystick HOT 1
- Better Rendering HOT 2
- Virtual keyboard issue on Android hosted Chrome
- Issue in bank 1 writing HOT 3
- Merlin need Apple 2c or 2e-128 HOT 1
- Is there documentation, or a changelog, besides the commit comments?
- a bit more explanation on creating a static distribution HOT 1
- Save state, load no more? HOT 1
- README says sit instead of git HOT 1
- Memory size? HOT 3
- Apple IIgs support? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apple2js.