Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > JAM instruction
2013-08-18 02:58
Six

Registered: Apr 2002
Posts: 322
JAM instruction

Does anyone have a description of what happens internally in the CPU to make the JAM instructions lock up? I'm curious if anyone has looked into exactly WHY they behave like they do and thought it might be an interesting topic to research, but not sure where to start.
2013-08-18 04:03
Mixer

Registered: Apr 2008
Posts: 460
Could this be of some use to your research?

http://visual6502.org/JSSim/index.html
2013-08-18 07:21
Ninja

Registered: Jan 2002
Posts: 418
IIRC some C= Hacking magazine had an explanation. They are all on the web...
2013-08-18 08:35
MagerValp

Registered: Dec 2001
Posts: 1082
They figured it out with Visual6502 and Michael Steil has a good explanation on his blog:

http://www.pagetable.com/?p=39

TL;DR: the instruction decoder is a state machine, and some illegals get it to a state where it never finishes the current instruction.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
TheRyk/MYD!
iAN CooG/HVSC
Tommy/Noice^DCS
Airwolf/F4CG
Slator/expensive but..
Jazzcat/Onslaught
Shake
Peiselulli/tRSi
Guests online: 280
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Sulevi  (9.6)
4 Pal  (9.6)
5 Hein  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.043 sec.