Skip to content

Instantly share code, notes, and snippets.

@Lerc
Created Jun 21, 2022
Embed
What would you like to do?
Frequency of Instructions in Gigatron ROM v5a
LD Imm,AC 00xx 59908
LD [0:Imm],AC 01xx 334
LD AC,AC 02xx 246
LD IN,AC 03xx 1
LD Imm,AC 04xx 0
LD [0:X],AC 05xx 38
LD AC,AC 06xx 0
LD IN,AC 07xx 0
LD Imm,AC 08xx 0
LD [Y:Imm],AC 09xx 7
LD AC,AC 0axx 0
LD IN,AC 0bxx 0
LD Imm,AC 0cxx 0
LD [Y:X],AC 0dxx 91
LD AC,AC 0exx 0
LD IN,AC 0fxx 0
LD Imm,X 10xx 1
LD [0:Imm],X 11xx 59
LD AC,X 12xx 16
LD IN,X 13xx 0
LD Imm,Y 14xx 497
LD [0:Imm],Y 15xx 63
LD AC,Y 16xx 3
LD IN,Y 17xx 0
LD Imm,OUT 18xx 14
LD [0:Imm],OUT 19xx 6
LD AC,OUT 1axx 0
LD IN,OUT 1bxx 0
LD Imm,OUT 1cxx 0
LD [Y:X++],OUT 1dxx 0
LD AC,OUT 1exx 0
LD IN,OUT 1fxx 0
AND Imm,AC 20xx 81
AND [0:Imm],AC 21xx 137
AND AC,AC 22xx 0
AND IN,AC 23xx 0
AND Imm,AC 24xx 0
AND [0:X],AC 25xx 2
AND AC,AC 26xx 0
AND IN,AC 27xx 0
AND Imm,AC 28xx 0
AND [Y:Imm],AC 29xx 2
AND AC,AC 2axx 0
AND IN,AC 2bxx 0
AND Imm,AC 2cxx 0
AND [Y:X],AC 2dxx 4
AND AC,AC 2exx 0
AND IN,AC 2fxx 0
AND Imm,X 30xx 14
AND [0:Imm],X 31xx 0
AND AC,X 32xx 0
AND IN,X 33xx 0
AND Imm,Y 34xx 0
AND [0:Imm],Y 35xx 0
AND AC,Y 36xx 0
AND IN,Y 37xx 0
AND Imm,OUT 38xx 0
AND [0:Imm],OUT 39xx 0
AND AC,OUT 3axx 0
AND IN,OUT 3bxx 0
AND Imm,OUT 3cxx 0
AND [Y:X++],OUT 3dxx 0
AND AC,OUT 3exx 0
AND IN,OUT 3fxx 0
OR Imm,AC 40xx 17
OR [0:Imm],AC 41xx 26
OR AC,AC 42xx 0
OR IN,AC 43xx 0
OR Imm,AC 44xx 0
OR [0:X],AC 45xx 8
OR AC,AC 46xx 0
OR IN,AC 47xx 113
OR Imm,AC 48xx 0
OR [Y:Imm],AC 49xx 1
OR AC,AC 4axx 0
OR IN,AC 4bxx 0
OR Imm,AC 4cxx 0
OR [Y:X],AC 4dxx 4
OR AC,AC 4exx 0
OR IN,AC 4fxx 0
OR Imm,X 50xx 6
OR [0:Imm],X 51xx 0
OR AC,X 52xx 0
OR IN,X 53xx 0
OR Imm,Y 54xx 0
OR [0:Imm],Y 55xx 0
OR AC,Y 56xx 0
OR IN,Y 57xx 0
OR Imm,OUT 58xx 0
OR [0:Imm],OUT 59xx 0
OR AC,OUT 5axx 0
OR IN,OUT 5bxx 0
OR Imm,OUT 5cxx 0
OR [Y:X++],OUT 5dxx 160
OR AC,OUT 5exx 0
OR IN,OUT 5fxx 0
XOR Imm,AC 60xx 25
XOR [0:Imm],AC 61xx 130
XOR AC,AC 62xx 0
XOR IN,AC 63xx 0
XOR Imm,AC 64xx 0
XOR [0:X],AC 65xx 0
XOR AC,AC 66xx 0
XOR IN,AC 67xx 113
XOR Imm,AC 68xx 0
XOR [Y:Imm],AC 69xx 119
XOR AC,AC 6axx 0
XOR IN,AC 6bxx 0
XOR Imm,AC 6cxx 0
XOR [Y:X],AC 6dxx 1
XOR AC,AC 6exx 114
XOR IN,AC 6fxx 114
XOR Imm,X 70xx 0
XOR [0:Imm],X 71xx 0
XOR AC,X 72xx 114
XOR IN,X 73xx 0
XOR Imm,Y 74xx 114
XOR [0:Imm],Y 75xx 0
XOR AC,Y 76xx 0
XOR IN,Y 77xx 0
XOR Imm,OUT 78xx 0
XOR [0:Imm],OUT 79xx 0
XOR AC,OUT 7axx 0
XOR IN,OUT 7bxx 0
XOR Imm,OUT 7cxx 0
XOR [Y:X++],OUT 7dxx 0
XOR AC,OUT 7exx 0
XOR IN,OUT 7fxx 0
ADD Imm,AC 80xx 83
ADD [0:Imm],AC 81xx 79
ADD AC,AC 82xx 43
ADD IN,AC 83xx 0
ADD Imm,AC 84xx 0
ADD [0:X],AC 85xx 4
ADD AC,AC 86xx 0
ADD IN,AC 87xx 0
ADD Imm,AC 88xx 0
ADD [Y:Imm],AC 89xx 6
ADD AC,AC 8axx 0
ADD IN,AC 8bxx 0
ADD Imm,AC 8cxx 0
ADD [Y:X],AC 8dxx 10
ADD AC,AC 8exx 0
ADD IN,AC 8fxx 0
ADD Imm,X 90xx 13
ADD [0:Imm],X 91xx 3
ADD AC,X 92xx 1
ADD IN,X 93xx 0
ADD Imm,Y 94xx 1
ADD [0:Imm],Y 95xx 1
ADD AC,Y 96xx 0
ADD IN,Y 97xx 0
ADD Imm,OUT 98xx 0
ADD [0:Imm],OUT 99xx 0
ADD AC,OUT 9axx 0
ADD IN,OUT 9bxx 0
ADD Imm,OUT 9cxx 0
ADD [Y:X++],OUT 9dxx 0
ADD AC,OUT 9exx 0
ADD IN,OUT 9fxx 0
SUB Imm,AC a0xx 59
SUB [0:Imm],AC a1xx 9
SUB AC,AC a2xx 0
SUB IN,AC a3xx 0
SUB Imm,AC a4xx 0
SUB [0:X],AC a5xx 6
SUB AC,AC a6xx 0
SUB IN,AC a7xx 0
SUB Imm,AC a8xx 0
SUB [Y:Imm],AC a9xx 0
SUB AC,AC aaxx 0
SUB IN,AC abxx 0
SUB Imm,AC acxx 0
SUB [Y:X],AC adxx 3
SUB AC,AC aexx 0
SUB IN,AC afxx 0
SUB Imm,X b0xx 3
SUB [0:Imm],X b1xx 0
SUB AC,X b2xx 0
SUB IN,X b3xx 0
SUB Imm,Y b4xx 0
SUB [0:Imm],Y b5xx 0
SUB AC,Y b6xx 0
SUB IN,Y b7xx 0
SUB Imm,OUT b8xx 0
SUB [0:Imm],OUT b9xx 0
SUB AC,OUT baxx 0
SUB IN,OUT bbxx 0
SUB Imm,OUT bcxx 0
SUB [Y:X++],OUT bdxx 0
SUB AC,OUT bexx 0
SUB IN,OUT bfxx 0
ST [0:Imm] c0xx 4
ST undef c1xx 1
ST [0:Imm] c2xx 753
ST [0:Imm] c3xx 2
ST [0:X] c4xx 0
ST undef c5xx 0
ST [0:X] c6xx 14
ST [0:X] c7xx 0
ST [Y:Imm] c8xx 0
ST undef c9xx 0
ST [Y:Imm] caxx 10
ST [Y:Imm] cbxx 0
ST [Y:X] ccxx 0
ST undef cdxx 9
ST [Y:X] cexx 22
ST [Y:X] cfxx 0
ST [0:Imm],X d0xx 0
ST undef,X d1xx 0
ST [0:Imm],X d2xx 23
ST [0:Imm],X d3xx 0
ST [0:Imm],Y d4xx 0
ST undef,Y d5xx 0
ST [0:Imm],Y d6xx 20
ST [0:Imm],Y d7xx 0
ST [0:Imm],OUT d8xx 0
ST undef,OUT d9xx 0
ST [0:Imm],OUT daxx 0
ST [0:Imm],OUT dbxx 0
ST [Y:X++],OUT dcxx 206
ST undef,OUT ddxx 16
ST [Y:X++],OUT dexx 95
ST [Y:X++],OUT dfxx 0
jmp Imm e0xx 482
jmp [Imm] e1xx 6
jmp AC e2xx 17
jmp IN e3xx 0
bgt Imm e4xx 6
bgt [Imm] e5xx 0
bgt AC e6xx 0
bgt IN e7xx 0
blt Imm e8xx 31
blt [Imm] e9xx 0
blt AC eaxx 0
blt IN ebxx 0
bne Imm ecxx 46
bne [Imm] edxx 0
bne AC eexx 0
bne IN efxx 0
beq Imm f0xx 54
beq [Imm] f1xx 0
beq AC f2xx 0
beq IN f3xx 0
bge Imm f4xx 15
bge [Imm] f5xx 0
bge AC f6xx 0
bge IN f7xx 0
ble Imm f8xx 3
ble [Imm] f9xx 0
ble AC faxx 0
ble IN fbxx 0
bra Imm fcxx 423
bra [Imm] fdxx 6
bra AC fexx 245
bra IN ffxx 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment