18 March 2022, 17:13 | #1 |
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
|
680x0 opcode encoding - odd branches?
Is this summary correct and complete http://goldencrystal.free.fr/M68kOpcodes-v2.3.pdf ?
In the debate around the Vampire and suggestions for extending the instruction set I have been wondering about the branch instructions: Do all 680x0 variants trap when branching/jumping to an odd address? Does branching to an odd address serve any other purpose than generating a trap? Would it be an idea to have a supervisor-mode controlled setting that re-purposes odd branches for added opcodes? There are 127 of them for each 2-byte branch opcode from the top of my head (15*128 ?). Last edited by NorthWay; 18 March 2022 at 17:32. Reason: 128 not 127 |
18 March 2022, 17:52 | #2 | ||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
Quote:
Quote:
This, however, was the initial plan from Moto : allow branching to odd address if some day some successor of the family does this - but this obviously never happened. Quote:
While in theory possible, value $FF (= 32-bit 020+ branch) comes in the way. |
||||
18 March 2022, 18:00 | #3 |
Registered User
Join Date: Jun 2015
Location: Germany
Posts: 1,918
|
|
18 March 2022, 18:01 | #4 | |
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
|
Quote:
What was the verdict on the NatAmi forum on its feasibility? |
|
18 March 2022, 18:16 | #5 | ||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
Quote:
If we accept having several incompatible encodings, it's be IMO better to build a completely new one. Not usable (for the purpose of extending the range of short branches, which was the idea then). |
||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GCR encoding | roondar | Coders. Asm / Hardware | 70 | 25 September 2018 17:58 |
Converting 6502 to 680x0 (calling all 6502/680x0 experts) | oRBIT | Coders. General | 12 | 14 January 2015 19:18 |
Why extra branches? (Which compiler?) | crabman | Coders. Asm / Hardware | 31 | 01 May 2014 08:24 |
Encoding and writing an MFM track | phx | Coders. Asm / Hardware | 15 | 30 October 2013 10:33 |
New opcode for 68000 family | clenched | request.UAE Wishlist | 15 | 14 April 2009 15:02 |
|
|