Thats interesting, thanks. So this problem shouldn't occur with the CBM machines as they dont use NMIs in the normal OS.
Perhaps the C128 problem above is caused by some other bug? For example, I recall there is some problem using decimal mode on the v20, because the IRQ rom routine doesn't handle it properly. The machines definitely have other bugs.
Bug in 6502 BRK.
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Bug in 6502 BRK.
orac81 wrote:
Thats interesting, thanks. So this problem shouldn't occur with the CBM machines as they dont use NMIs in the normal OS.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Bug in 6502 BRK.
Yes, you are right, forgot about rs232, although I built the Maplin userport level converter kit back in the day. Hardly ever used on CBMs since its software driven, 5 volt only, CPU intensive and very slow. 2400 baud was unreliable on the c64 because of NMI conflicts with VIC2 "bad lines", unless you disable the screen.
It would have made more sense to use the V20/C64 ROM space for a mc monitor, and put the rs232 software as a util on the free 1541 disk, a disk was supplied with the modem anyway.
Most CBM devices (like printers) use IEC serial.
Anyway, sounds like IRQ/BRK work together fine, just check the break flag. Not sure its a very profitable way to call code, I wonder what compiler/tool was used on the AttackUfo code, written around 1979ish..
It would have made more sense to use the V20/C64 ROM space for a mc monitor, and put the rs232 software as a util on the free 1541 disk, a disk was supplied with the modem anyway.
Most CBM devices (like printers) use IEC serial.
Anyway, sounds like IRQ/BRK work together fine, just check the break flag. Not sure its a very profitable way to call code, I wonder what compiler/tool was used on the AttackUfo code, written around 1979ish..
Github: https://github.com/orac81
-
6502inside
- Posts: 101
- Joined: 03 Jan 2007
- Location: Sunny So Cal
- Contact:
Re: Bug in 6502 BRK.
Quote:
Do any early 6502 Forth compilers use this BRK method to save memory?
Machine room: http://www.floodgap.com/etc/machines.html