Skip to content
Merged

Doc #222

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
79ebc50
Add Index page
boriel Sep 13, 2019
734c5a5
Add READ and DATA help
boriel Sep 13, 2019
2677a7c
Add Identifier.md page
boriel Sep 13, 2019
e5a76db
add LET command
boriel Sep 13, 2019
745763f
Main index updated completely
boriel Sep 13, 2019
7e85c2b
Add About section
boriel Sep 13, 2019
0ce9de7
Added About section
boriel Sep 13, 2019
1c1ade7
Remove doble title in READ
boriel Sep 13, 2019
8f37eff
Fix link
boriel Sep 13, 2019
468c600
Add 4inarow.bas listing
boriel Sep 13, 2019
6adcfb6
Add Sample Programs page
boriel Sep 13, 2019
d4891df
Add DRAW page
boriel Sep 13, 2019
5be3ce6
Add trigonometric functions
boriel Sep 13, 2019
5c932b5
Add fractal.bas example by Britlion
boriel Sep 13, 2019
dc80be9
Add BEEP command
boriel Sep 13, 2019
b541ff6
Add Syntax for the language
boriel Sep 13, 2019
9587b08
Fix 4 en raya Link
boriel Sep 13, 2019
21b4807
Add FOR .. NEXT instruction
boriel Sep 14, 2019
a594d31
Add WHILE / WEND
boriel Sep 14, 2019
e0dc6bf
Add IF sentence
boriel Sep 14, 2019
d08906d
Add DO...LOOP
boriel Sep 14, 2019
24b7959
Add AT document
boriel Sep 14, 2019
94c57fa
Add ALIGN asm primitive
boriel Sep 14, 2019
6396569
Add BORDER statement
boriel Sep 14, 2019
6d3df40
Add RESTORE command
boriel Sep 14, 2019
fc4e4cd
Add RND function
boriel Sep 14, 2019
10e5c50
Add SQR document
boriel Sep 14, 2019
afa6b4b
Add zxb explanation
boriel Sep 14, 2019
37b6680
Add DIM explanation
boriel Sep 14, 2019
bef8b52
Add CAST doc
boriel Sep 14, 2019
908714d
Add lines.bas example
boriel Sep 14, 2019
5edf8d0
Add CIRCLE example
boriel Sep 14, 2019
46334df
Add PLOT command
boriel Sep 14, 2019
1bdc386
Add CIRCLE command
boriel Sep 14, 2019
056ad85
Add FUNCTION documentation
boriel Sep 14, 2019
6c8e0ab
Add SUB document
boriel Sep 15, 2019
d3edc8c
add Types explanation
boriel Sep 15, 2019
3423e5b
Add labels doc
boriel Sep 15, 2019
cb87789
Add tutorials page
boriel Sep 15, 2019
e310310
Add identifies and tutorials to the Nav Bar
boriel Sep 15, 2019
22bc372
Add POKE documentation
boriel Sep 15, 2019
697324c
Add PEEK documentation
boriel Sep 15, 2019
7aad203
Add EXIT documentation
boriel Sep 15, 2019
04a989a
Add DECLARE doc
boriel Sep 15, 2019
45f4493
Add comments section
boriel Sep 15, 2019
ce0c0a4
Add CONTINUE docs
boriel Sep 15, 2019
5904f1a
Add external resources page
boriel Sep 15, 2019
34a67d4
Add tools page
boriel Sep 15, 2019
eaeb33b
Add ASM page
boriel Sep 15, 2019
af5b220
Add CONST page
boriel Sep 15, 2019
d08dbf0
Add installation page
boriel Sep 15, 2019
ac7663c
Add FASTCALL page
boriel Sep 15, 2019
3f7b9ee
Move doc to the root directory
boriel Sep 15, 2019
07f6b16
Fix bullet list
boriel Sep 15, 2019
5604276
Add Operators page
boriel Sep 16, 2019
97f47d0
Add Library page
boriel Sep 16, 2019
5112af9
Add Snake example
boriel Sep 16, 2019
ee290a7
Fix link
boriel Sep 16, 2019
bb104d8
Add ABS page
boriel Sep 18, 2019
dffc7bf
Add archives page
boriel Sep 18, 2019
f62488e
Add ASC page
boriel Sep 18, 2019
41c1096
Add CHR page
boriel Sep 18, 2019
0fee5b2
Add Flag example
boriel Sep 18, 2019
47b7980
Add Fact (factorial) example
boriel Sep 18, 2019
988d1ee
Add SHL/SHR page
boriel Sep 18, 2019
a1d8792
Add Frere Gustav example
boriel Sep 18, 2019
38edcf6
Add FLASH page
boriel Sep 18, 2019
ebc6a85
Fix logical operators links
boriel Sep 18, 2019
deae71e
Add CLOCK.BAS example
boriel Sep 18, 2019
c1e086b
Add CLOCK2.BAS example
boriel Sep 18, 2019
3163433
Add COLORS.BAS example
boriel Sep 18, 2019
801383b
Add CSRLIN() page
boriel Sep 18, 2019
efc3d4e
Add INK page
boriel Sep 18, 2019
5c06db7
Fix image URLs
boriel Sep 19, 2019
41ab9c3
Update link
boriel Sep 19, 2019
8681912
Fix links in syntax page
boriel Sep 19, 2019
7decbe5
Fix forum link
boriel Sep 19, 2019
b6e5d9e
Fix Archive link
boriel Sep 20, 2019
265dd0a
Add released programs page
boriel Sep 20, 2019
7f7ec50
Update released programs doc
boriel Sep 20, 2019
73e8579
Add DISTANCE.BAS page
boriel Sep 22, 2019
e06a23f
Process released_programs into a subdir
boriel Sep 22, 2019
540d0f2
Add FSIN.BAS page
boriel Sep 22, 2019
1ef9312
Add FSQR.BAS page
boriel Sep 22, 2019
f0867ba
Add ISQRT.BAS page
boriel Sep 22, 2019
a5aa458
Add Randomstream.bas page
boriel Sep 22, 2019
d71fbc7
Add POS page
boriel Sep 24, 2019
eecb36c
Add SCREEN page
boriel Sep 24, 2019
b20a63b
Add OVER page
boriel Sep 24, 2019
c11b993
Add PAPER page
boriel Sep 24, 2019
9475753
Add LBOUND() page
boriel Sep 24, 2019
578b92a
Add LOAD / SAVE / VERIFY page
boriel Sep 24, 2019
a5b0267
Add BOLD page
boriel Sep 24, 2019
bdc4f73
Add BRIGHT page
boriel Sep 24, 2019
0776f00
Add INKEY$ page
boriel Sep 24, 2019
a6520e0
Add INPUT page
boriel Sep 24, 2019
cf6871d
Fix GOTO / GOSUB links
boriel Sep 24, 2019
565bd23
Add INPUT entry
boriel Sep 24, 2019
a2ca056
Add INVERSE page
boriel Sep 24, 2019
4ee99aa
Add ITALIC page
boriel Sep 24, 2019
e8f9ef4
Add UBOUND() page
boriel Sep 24, 2019
871235d
Fix BEEP example link
boriel Sep 24, 2019
3eba60d
Move distance.bas to library/ directory
boriel Sep 24, 2019
66296eb
Move randomstream.bas to library/ dir
boriel Sep 24, 2019
5d747dc
Fix SQR page
boriel Sep 24, 2019
82c2a1a
Move fsin.bas to library/ subdir
boriel Sep 24, 2019
5f301e5
Move isqrt.bas to library/ subdir
boriel Sep 24, 2019
e35ce46
Fix 2 broken links
boriel Sep 24, 2019
929c07b
Update all library links to use library/ subdir
boriel Sep 24, 2019
8254874
Add HRPRINT library page
boriel Sep 24, 2019
7c098f1
Fix pos and csrlin links
boriel Sep 24, 2019
89c146e
Add AttrAddress library function
boriel Sep 24, 2019
7d75dd1
Add clearbox.bas library
boriel Sep 24, 2019
e2333e9
Add FastPlot.bas library
boriel Sep 24, 2019
c18ecea
Add CSRLIN and POS again...
boriel Sep 24, 2019
8ad506c
Add HRPrintFast library
boriel Sep 24, 2019
518dccc
Add HMIRROR.BAS library
boriel Sep 24, 2019
2041022
Add MegaLZ bas library
boriel Sep 24, 2019
f7f624f
Add PutTile.bas library
boriel Sep 24, 2019
225b7fd
Add WindowAttrScrollUP library
boriel Sep 24, 2019
70dfbca
Add WindowsScrollUP library
boriel Sep 24, 2019
7d8cee1
Add PutChars library page
boriel Sep 24, 2019
2665631
Add ScrAddress library
boriel Sep 24, 2019
aaaca4f
Add WindowPaint library page
boriel Sep 24, 2019
27a63fa
Add print42 library page
boriel Sep 24, 2019
c577a01
Add PRINT64 library
boriel Sep 24, 2019
a6c62dd
Add PRINT64x32 library
boriel Sep 24, 2019
108c2bc
Fix other architectures link
boriel Sep 24, 2019
1efacdd
Add other_architectures page
boriel Sep 24, 2019
877a72e
Update other architectures links
boriel Sep 24, 2019
e75d56d
Add DoubleSizePrint library page
boriel Sep 24, 2019
0097f76
Add PropPrint.bas library
boriel Sep 24, 2019
1a4e38e
Add PixelScroll library page
boriel Sep 24, 2019
8b52386
Add arch pages
boriel Sep 24, 2019
1bd18cf
Fix Asc.bas CODE link
boriel Sep 24, 2019
0d8ae6a
Fixed img links in released programs
boriel Sep 24, 2019
9bf91cc
Add BrokendFriend image
boriel Sep 24, 2019
26760d7
Add sample program images
boriel Sep 24, 2019
75ab610
Add black background to all images
boriel Sep 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/docs
111 changes: 111 additions & 0 deletions doc/process_wiki.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bs4 import BeautifulSoup as BS
import sys
import re
import os

RE_CODE = re.compile('<zxbasic>|</zxbasic>|<freebasic>|</freebasic>|<qbasic>|</qbasic>')
RE_INTERNAL_LINK = re.compile(r'\[\[([^]|]+)(\|[^]]+)?\]\]')
RE_EXTERNAL_LINK = re.compile(r'\[(http://[^ ]+) ([^]]+)\]')


def get_file_names(path):
result = set()
for root, dir, files in os.walk(path):
result.update([os.path.basename(x) for x in files])

return result


def link_to_fname(link):
if link.startswith('ZX_BASIC:'):
link = link[9:]

link = link.replace(' ', '_').lower() + '.md'
link = link.replace('released_programs_-_', 'released_programs/')
return link


def write_page(title, text, sha1, already_done):
fname = title.replace(' ', '_').lower().replace('released_programs_-_', 'released_programs/') + '.md'
if fname in already_done:
return

print('Processing {}'.format(fname))

with open(fname, 'wt', encoding='utf-8') as fout:
fout.write('#{}\n\n'.format(title))
started = False
verbatim = False

for line in text.split('\n'):
if line == sha1:
continue

started = started or line == 'text/x-wiki'
if not started or line == 'text/x-wiki':
continue

prefix = ''
if line.startswith(' ') or verbatim:
if not verbatim:
fout.write('```\n')
verbatim = True
elif line and not line.startswith(' '):
fout.write('\n```')
verbatim = False

if not verbatim:
while line and line[0] == line[-1] == '=':
line = line[1:-1]
prefix = prefix + '#'

line = line.replace("'''", '**')
line = line.replace("''", '_')
line = RE_CODE.sub(repl='\n```\n', string=line)
line = line.replace('<tt>', '_').replace('</tt>', '_')

while True:
match = RE_INTERNAL_LINK.search(line)
if not match:
break
lline = list(line)
a, b = match.span()
fname, txt = match.groups()
txt = (txt or fname).lstrip('|')
lline[a: b] = list('[{}]({})'.format(txt, link_to_fname(fname)))
line = ''.join(lline)

while True:
match = RE_EXTERNAL_LINK.search(line)
if not match:
break
lline = list(line)
a, b = match.span()
link, txt = match.groups()
txt = (txt or link).strip()
lline[a: b] = list('[{}]({})'.format(txt, link))
line = ''.join(lline)

line = line.replace('&gt;', '>').replace('&lt;', '<').replace('&amp;', '&')
if line.startswith('*') and line[:2] not in ('* ', '**'):
line = '* {}'.format(line[1:])

fout.write(prefix + line + '\n')


# given your html as the variable 'html'
with open(sys.argv[1], 'rt') as f:
soup = BS(f.read(), "xml")

already_done = get_file_names('./docs')

pages = soup.find_all('page')
for page in pages:
title = page.title.text
if not title.startswith('ZX BASIC:'):
continue
title = title[9:]
write_page(title, page.text, page.sha1.text, already_done)
20 changes: 20 additions & 0 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#About


##About the ZX BASIC Project

ZX BASIC is a [BASIC](http://en.wikipedia.org/wiki/BASIC) ''cross compiler''.
It will compile BASIC programs (in your PC) for your [ZX Spectrum](http://en.wikipedia.org/wiki/Sinclair_ZX_Spectrum).
ZX BASIC is an <abbr title="Software Development Kit">SDK</abbr> entirely written in [python](http://www.python.org).
The SDK is implemented using the [PLY](http://www.dabeaz.com/ply/) (Python Lex/Yacc) compiler tool.
It translates BASIC to Z80 assembler code, so it is easily portable to other Z80 platforms (Amstrad, MSX).
Other non Z80 targets could also be available in the future.

ZX BASIC syntax tries to maintain compatibility as much as possible with
[Sinclair BASIC](http://en.wikipedia.org/wiki/Sinclair_BASIC), it also have many new features, mostly taken from
[FreeBASIC](http://www.freebasic.net/wiki) dialect.

###Platform Availability
Since it is written in python, it is available for many platforms, like Windows, Linux and Mac.
You only need to have python installed on these. For windows, there also is an installable (.MSI) _compiled_
version, which does not need python previously installed.
30 changes: 30 additions & 0 deletions docs/abs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#ABS

##Syntax


```
ABS(numericExpression)
```


##Description

Returns the absolute value of the given argument.
Argument must be a numeric expression. Returned value has the same type as the input argument.

##Examples


```
REM Absolute value
LET a = -1
PRINT "Absolute value of a is "; ABS(a)
REM 'Will print 1
```


##Remarks

* This function is 100% Sinclair BASIC Compatible

32 changes: 32 additions & 0 deletions docs/acs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#ACS

##Syntax

```
ACS(numericExpression)
```


##Description

Returns the arc cosine value of the given argument.
Argument must be a numeric expression. Returned value type is [Float](types#float.md).

##Examples

```
REM Arc cosine value
PRINT "Arc Cosine value of a is "; ACS(a)
```


##Remarks

* This function is 100% Sinclair BASIC Compatible
* If the given argument type is not float, it will be [converted](cast.md) to float before operating with it.

##See also

* [SIN](sin.md) and [ASN](asn.md)
* [TAN](tan.md) and [ATN](atn.md)
* [COS](cos.md)
171 changes: 171 additions & 0 deletions docs/architectures/6502.py.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
#6502.py

```
#!/usr/bin/python
# -*- coding: utf-8 -*-
# vim:ts=4:et:
#- important: this code is not acurated yet - needs fixes
class Opcode(object):
''' Describes opcodes and other info.
'''
def __init__(self, asm, time, size, opcode):
self.asm = asm
self.T = time
self.size = size
self.opcode = opcode
6502SET = {
"BRK": Opcode("BRK", 1, 1, "00"),
"ORA (x,X)": Opcode("ORA (x,X)", 1, 1, "01 XX XX"),
"ORA x": Opcode("ORA x", 1, 1, "05 XX"),
"ASL x": Opcode("ASL x", 1, 1, "06 XX"),
"PHP": Opcode("PHP", 1, 1, "08"),
"ORA #x": Opcode("ORA #x", 1, 1, "09 XX"),
"ASL": Opcode("ASL", 1, 1, "0a"),
"ORA ?": Opcode("ORA ?", 1, 1, "0d XX XX"),
"ASL ?": Opcode("ASL ?", 1, 1, "0e XX XX"),
"BPL x": Opcode("BPL x", 1, 1, "10 XX"),
"ORA (x),Y": Opcode("ORA (x),Y", 1, 1, "11 XX"),
"ORA x,X": Opcode("ORA x,X", 1, 1, "15 XX"),
"ASL x,X": Opcode("ASL x,X", 1, 1, "16 XX"),
"CLC": Opcode("CLC", 1, 1, "18"),
"ORA ?,Y": Opcode("ORA ?,Y", 1, 1, "19 XX XX"),
"ORA ?,X": Opcode("ORA ?,X", 1, 1, "1d XX XX"),
"ASL ?,X": Opcode("ASL ?,X", 1, 1, "1e XX XX"),
"JSR ?": Opcode("JSR ?", 1, 1, "20 XX XX"),
"AND (x,X)": Opcode("AND (x,X)", 1, 1, "21 XX"),
"BIT x": Opcode("BIT x", 1, 1, "24 XX"),
"AND x": Opcode("AND x", 1, 1, "25 XX"),
"ROL x": Opcode("ROL x", 1, 1, "26 XX"),
"PLP": Opcode("PLP", 1, 1, "28"),
"AND #x": Opcode("AND #x", 1, 1, "29 XX"),
"ROL A": Opcode("ROL A", 1, 1, "2a"),
"BIT ?": Opcode("BIT ?", 1, 1, "2c XX XX"),
"AND ?": Opcode("AND ?", 1, 1, "2d XX XX"),
"ROL ?": Opcode("ROL ?", 1, 1, "2e XX XX"),
"BMI x": Opcode("BMI x", 1, 1, "30 XX"),
"AND (x),Y": Opcode("AND (x),Y", 1, 1, "31 XX"),
"AND x,X": Opcode("AND x,X", 1, 1, "35 XX"),
"ROL x,X": Opcode("ROL x,X", 1, 1, "36 XX"),
"SEC": Opcode("SEC", 1, 1, "38"),
"AND ?,Y": Opcode("AND ?,Y", 1, 1, "39 XX XX"),
"AND ?,X": Opcode("AND ?,X", 1, 1, "3d XX XX"),
"ROL ?,X": Opcode("ROL ?,X", 1, 1, "3e XX XX"),
"RTI": Opcode("RTI", 1, 1, "40"),
"EOR (x,X)": Opcode("EOR (x,X)", 1, 1, "41 XX"),
"EOR x": Opcode("EOR x", 1, 1, "45 XX"),
"LSR x": Opcode("LSR x", 1, 1, "46 XX"),
"PHA": Opcode("PHA", 1, 1, "48"),
"EOR #x": Opcode("EOR #x", 1, 1, "49 XX"),
"LSR A": Opcode("LSR A", 1, 1, "4a"),
"JMP ?": Opcode("JMP ?", 1, 1, "4c XX XX"),
"EOR ?": Opcode("EOR ?", 1, 1, "4d XX XX"),
"LSR ?": Opcode("LSR ?", 1, 1, "4e XX XX"),
"BVC x": Opcode("BVC x", 1, 1, "50 XX"),
"EOR (x),Y": Opcode("EOR (x),Y", 1, 1, "51 XX"),
"EOR x,X": Opcode("EOR x,X", 1, 1, "55 XX"),
"LSR x,X": Opcode("LSR x,X", 1, 1, "56 XX"),
"CLI": Opcode("CLI", 1, 1, "58"),
"EOR ?,Y": Opcode("EOR ?,Y", 1, 1, "59 XX XX"),
"EOR ?,X": Opcode("EOR ?,X", 1, 1, "5d XX XX"),
"LSR ?,X": Opcode("LSR ?,X", 1, 1, "5e XX XX"),
"RTS": Opcode("RTS", 1, 1, "60"),
"ADC (x,X)": Opcode("ADC (x,X)", 1, 1, "61 XX"),
"ADC x": Opcode("ADC x", 1, 1, "65 XX"),
"ROR x": Opcode("ROR x", 1, 1, "66 XX"),
"PLA": Opcode("PLA", 1, 1, "68"),
"ADC #x": Opcode("ADC #x", 1, 1, "69 XX"),
"ROR A": Opcode("ROR A", 1, 1, "6a"),
"JMP (?)": Opcode("JMP (?)", 1, 1, "6c XX XX"),
"ADC ?": Opcode("ADC ?", 1, 1, "6d XX XX"),
"ROR ?": Opcode("ROR ?", 1, 1, "6e XX XX"),
"BVS x": Opcode("BVS x", 1, 1, "70 XX"),
"ADC (x),Y": Opcode("ADC (x),Y", 1, 1, "71 XX"),
"ADC x,X": Opcode("ADC x,X", 1, 1, "75 XX"),
"ROR x,X": Opcode("ROR x,X", 1, 1, "76 XX"),
"SEI": Opcode("SEI", 1, 1, "78"),
"ADC ?,Y": Opcode("ADC ?,Y", 1, 1, "79 XX XX"),
"ADC ?,X": Opcode("ADC ?,X", 1, 1, "7d XX XX"),
"ROR ?,X": Opcode("ROR ?,X", 1, 1, "7e XX XX"),
"STA (x,X)": Opcode("STA (x,X)", 1, 1, "81 XX"),
"STY x": Opcode("STY x", 1, 1, "84 XX"),
"STA x": Opcode("STA x", 1, 1, "85 XX"),
"STX x": Opcode("STX x", 1, 1, "86 XX"),
"DEY": Opcode("DEY", 1, 1, "88"),
"TXA": Opcode("TXA", 1, 1, "8a"),
"STY ?": Opcode("STY ?", 1, 1, "8c XX XX"),
"STA ?": Opcode("STA ?", 1, 1, "8d XX XX"),
"STX ?": Opcode("STX ?", 1, 1, "8e XX XX"),
"BCC x": Opcode("BCC x", 1, 1, "90 XX"),
"STA (x),Y": Opcode("STA (x),Y", 1, 1, "91 XX"),
"STY x,X": Opcode("STY x,X", 1, 1, "94 XX"),
"STA x,X": Opcode("STA x,X", 1, 1, "95 XX"),
"STX x,Y": Opcode("STX x,Y", 1, 1, "96 XX"),
"TYA": Opcode("TYA", 1, 1, "98"),
"STA ?,Y": Opcode("STA ?,Y", 1, 1, "99 XX XX"),
"TXS": Opcode("TXS", 1, 1, "9a"),
"STA ?,X": Opcode("STA ?,X", 1, 1, "9d XX XX"),
"LDY #x": Opcode("LDY #x", 1, 1, "a0 XX"),
"LDA (x,X)": Opcode("LDA (x,X)", 1, 1, "a1 XX"),
"LDX #x": Opcode("LDX #x", 1, 1, "a2 XX"),
"LDY x": Opcode("LDY x", 1, 1, "a4 XX"),
"LDA x": Opcode("LDA x", 1, 1, "a5 XX"),
"LDX x": Opcode("LDX x", 1, 1, "a6 XX"),
"TAY": Opcode("TAY", 1, 1, "a8"),
"LDA #x": Opcode("LDA #x", 1, 1, "a9 XX"),
"TAX": Opcode("TAX", 1, 1, "aa"),
"LDY ?": Opcode("LDY ?", 1, 1, "ac XX XX"),
"LDA ?": Opcode("LDA ?", 1, 1, "ad XX XX"),
"LDX ?": Opcode("LDX ?", 1, 1, "ae XX XX"),
"BCS x": Opcode("BCS x", 1, 1, "b0 XX"),
"LDA (x),Y": Opcode("LDA (x),Y", 1, 1, "b1"),
"LDY x,X": Opcode("LDY x,X", 1, 1, "b4"),
"LDA x,X": Opcode("LDA x,X", 1, 1, "b5"),
"LDX x,Y": Opcode("LDX x,Y", 1, 1, "b6"),
"CLV": Opcode("CLV", 1, 1, "b8"),
"LDA ?,Y": Opcode("LDA ?,Y", 1, 1, "b9"),
"TSX": Opcode("TSX", 1, 1, "ba"),
"LDY ?,X": Opcode("LDY ?,X", 1, 1, "bc"),
"LDA ?,X": Opcode("LDA ?,X", 1, 1, "bd"),
"LDX ?,Y": Opcode("LDX ?,Y", 1, 1, "be"),
"CPY #x": Opcode("CPY #x", 1, 1, "c0 XX"),
"CMP (x,X)": Opcode("CMP (x,X)", 1, 1, "c1 XX"),
"CPY x": Opcode("CPY x", 1, 1, "c4 XX"),
"CMP x": Opcode("CMP x", 1, 1, "c5 XX"),
"DEC x": Opcode("DEC x", 1, 1, "c6 XX"),
"INY": Opcode("INY", 1, 1, "c8"),
"CMP #x": Opcode("CMP #x", 1, 1, "c9 XX"),
"DEX": Opcode("DEX", 1, 1, "ca"),
"CPY ?": Opcode("CPY ?", 1, 1, "cc XX XX"),
"CMP ?": Opcode("CMP ?", 1, 1, "cd XX XX"),
"DEC ?": Opcode("DEC ?", 1, 1, "ce XX XX"),
"BNE x": Opcode("BNE x", 1, 1, "d0 XX"),
"CMP (x),Y": Opcode("CMP (x),Y", 1, 1, "d1 XX"),
"CMP x,X": Opcode("CMP x,X", 1, 1, "d5 XX"),
"DEC x,X": Opcode("DEC x,X", 1, 1, "d6 XX"),
"CLD": Opcode("CLD", 1, 1, "d8"),
"CMP ?,Y": Opcode("CMP ?,Y", 1, 1, "d9"),
"CMP ?,X": Opcode("CMP ?,X", 1, 1, "dd"),
"DEC ?,X": Opcode("DEC ?,X", 1, 1, "de"),
"CPX #x": Opcode("CPX #x", 1, 1, "e0 XX"),
"SBC (x,X)": Opcode("SBC (x,X)", 1, 1, "e1 XX"),
"CPX x": Opcode("CPX x", 1, 1, "e4 XX"),
"SBC x": Opcode("SBC x", 1, 1, "e5 XX"),
"INC x": Opcode("INC x", 1, 1, "e6 XX"),
"INX": Opcode("INX", 1, 1, "e8"),
"SBC #x": Opcode("SBC #x", 1, 1, "e9 XX"),
"NOP": Opcode("NOP", 1, 1, "ea"),
"CPX ?": Opcode("CPX ?", 1, 1, "ec XX XX"),
"SBC ?": Opcode("SBC ?", 1, 1, "ed XX XX"),
"INC ?": Opcode("INC ?", 1, 1, "ee XX XX"),
"BEQ x": Opcode("BEQ x", 1, 1, "f0 XX"),
"SBC (x),Y": Opcode("SBC (x),Y", 1, 1, "f1 XX"),
"SBC x,X": Opcode("SBC x,X", 1, 1, "f5 XX"),
"INC x,X": Opcode("INC x,X", 1, 1, "f6 XX"),
"SED": Opcode("SED", 1, 1, "f8"),
"SBC ?,Y": Opcode("SBC ?,Y", 1, 1, "f9 XX XX"),
"SBC ?,X": Opcode("SBC ?,X", 1, 1, "fd XX XX"),
"INC ?,X": Opcode("INC ?,X", 1, 1, "fe XX XX"),

}


Loading