Skip to content

Commit 0083838

Browse files
authored
Merge pull request #683 from boriel/docs
doc: add USR function
2 parents 1512ab5 + 47ee595 commit 0083838

226 files changed

Lines changed: 1165 additions & 1327 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/about.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#About
1+
# About
22

33

4-
##About the ZX BASIC Project
4+
## About the ZX BASIC Project
55

66
ZX BASIC is a [BASIC](http://en.wikipedia.org/wiki/BASIC) ''cross compiler''.
77
It will compile BASIC programs (in your PC) for your [ZX Spectrum](http://en.wikipedia.org/wiki/Sinclair_ZX_Spectrum).
@@ -14,7 +14,7 @@ ZX BASIC syntax tries to maintain compatibility as much as possible with
1414
[Sinclair BASIC](http://en.wikipedia.org/wiki/Sinclair_BASIC), it also have many new features, mostly taken from
1515
[FreeBASIC](http://www.freebasic.net/wiki) dialect.
1616

17-
###Platform Availability
17+
### Platform Availability
1818
Since it is written in python, it is available for many platforms, like Windows, Linux and Mac.
1919
You only need to have python installed on these. For windows, there also is an installable (.MSI) _compiled_
2020
version, which does not need python previously installed.

docs/abs.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
#ABS
1+
# ABS
22

3-
##Syntax
3+
## Syntax
44

55

66
```
77
ABS(numericExpression)
88
```
99

1010

11-
##Description
11+
## Description
1212

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

16-
##Examples
16+
## Examples
1717

1818

1919
```
@@ -24,7 +24,6 @@ REM 'Will print 1
2424
```
2525

2626

27-
##Remarks
27+
## Remarks
2828

2929
* This function is 100% Sinclair BASIC Compatible
30-

docs/acs.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
#ACS
1+
# ACS
22

3-
##Syntax
3+
## Syntax
44

55
```
66
ACS(numericExpression)
77
```
8-
98

10-
##Description
9+
10+
## Description
1111

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

15-
##Examples
15+
## Examples
1616

1717
```
1818
REM Arc cosine value
1919
PRINT "Arc Cosine value of a is "; ACS(a)
2020
```
21-
2221

23-
##Remarks
22+
23+
## Remarks
2424

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

docs/architectures/6502.py.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#6502.py
1+
# 6502.py
22

33
```
44
#!/usr/bin/python
@@ -165,7 +165,5 @@
165165
"SBC ?,Y": Opcode("SBC ?,Y", 1, 1, "f9 XX XX"),
166166
"SBC ?,X": Opcode("SBC ?,X", 1, 1, "fd XX XX"),
167167
"INC ?,X": Opcode("INC ?,X", 1, 1, "fe XX XX"),
168-
169-
}
170-
171168
169+
}

docs/architectures/68000.py.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#68000.py
1+
# 68000.py
22

33
```
44
#!/usr/bin/python
55
# -*- coding: utf-8 -*-
66
# vim:ts=4:et:
7-
#- important - this code is still incomplete and unacurrated
7+
#- important - this code is still incomplete and unacurrated
88
class Opcode(object):
99
''' Describes opcodes and other info.
1010
'''
@@ -54,7 +54,7 @@
5454
"MOVE.W #$NN,A5": Opcode("MOVE.W #$NN,A5", 1, 1, "3A 7C XX XX"),
5555
"MOVE.W #$NN,A6": Opcode("MOVE.W #$NN,A6", 1, 1, "3C 7C XX XX"),
5656
"MOVE.W #$NN,A7": Opcode("MOVE.W #$NN,A7", 1, 1, "3E 7C XX XX"),
57-
57+
5858
"MOVE.B D0,D0": Opcode("MOVE.B D0,D0", 1, 1, "10 00"),
5959
"MOVE.B D0,D1": Opcode("MOVE.B D0,D1", 1, 1, "12 00"),
6060
"MOVE.B D0,D2": Opcode("MOVE.B D0,D2", 1, 1, "14 00"),
@@ -119,7 +119,7 @@
119119
"MOVE.B D7,D5": Opcode("MOVE.B D7,D5", 1, 1, "1A 07"),
120120
"MOVE.B D7,D6": Opcode("MOVE.B D7,D6", 1, 1, "1C 07"),
121121
"MOVE.B D7,D7": Opcode("MOVE.B D7,D7", 1, 1, "1E 07"),
122-
122+
123123
"MOVE.L D0,D0": Opcode("MOVE.L D0,D0", 1, 1, "20 00"),
124124
"MOVE.L D0,D1": Opcode("MOVE.L D0,D1", 1, 1, "22 00"),
125125
"MOVE.L D0,D2": Opcode("MOVE.L D0,D2", 1, 1, "24 00"),
@@ -184,7 +184,7 @@
184184
"MOVE.L D7,D5": Opcode("MOVE.L D7,D5", 1, 1, "2A 07"),
185185
"MOVE.L D7,D6": Opcode("MOVE.L D7,D6", 1, 1, "2C 07"),
186186
"MOVE.L D7,D7": Opcode("MOVE.L D7,D7", 1, 1, "2E 07"),
187-
187+
188188
"MOVE.W D0,D0": Opcode("MOVE.W D0,D0", 1, 1, "30 00"),
189189
"MOVE.W D0,D1": Opcode("MOVE.W D0,D1", 1, 1, "32 00"),
190190
"MOVE.W D0,D2": Opcode("MOVE.W D0,D2", 1, 1, "34 00"),
@@ -249,7 +249,7 @@
249249
"MOVE.W D7,D5": Opcode("MOVE.W D7,D5", 1, 1, "3A 07"),
250250
"MOVE.W D7,D6": Opcode("MOVE.W D7,D6", 1, 1, "3C 07"),
251251
"MOVE.W D7,D7": Opcode("MOVE.W D7,D7", 1, 1, "3E 07"),
252-
252+
253253
"ANDI.L #$NNNN,D0": Opcode("ANDI.L #$NNNN,D0", 1, 1, "02 80 XX XX XX XX"),
254254
"ANDI.L #$NNNN,D1": Opcode("ANDI.L #$NNNN,D1", 1, 1, "02 81 XX XX XX XX"),
255255
"ANDI.L #$NNNN,D2": Opcode("ANDI.L #$NNNN,D2", 1, 1, "02 82 XX XX XX XX"),
@@ -258,7 +258,7 @@
258258
"ANDI.L #$NNNN,D5": Opcode("ANDI.L #$NNNN,D5", 1, 1, "02 85 XX XX XX XX"),
259259
"ANDI.L #$NNNN,D6": Opcode("ANDI.L #$NNNN,D6", 1, 1, "02 86 XX XX XX XX"),
260260
"ANDI.L #$NNNN,D7": Opcode("ANDI.L #$NNNN,D7", 1, 1, "02 87 XX XX XX XX"),
261-
261+
262262
"LSR.L D0,D0": Opcode("LSR.L D0,D0", 1, 1, "E0 A8"),
263263
"LSR.L D0,D1": Opcode("LSR.L D0,D1", 1, 1, "E0 A9"),
264264
"LSR.L D0,D2": Opcode("LSR.L D0,D2", 1, 1, "E0 AA"),
@@ -267,11 +267,11 @@
267267
"LSR.L D0,D5": Opcode("LSR.L D0,D5", 1, 1, "E0 AD"),
268268
"LSR.L D0,D6": Opcode("LSR.L D0,D6", 1, 1, "E0 AE"),
269269
"LSR.L D0,D7": Opcode("LSR.L D0,D7", 1, 1, "E0 AF"),
270-
270+
271271
"LSR.L D5,D7": Opcode("LSR.L D5,D7", 1, 1, "EA AF"),
272272
"LSR.L D6,D7": Opcode("LSR.L D6,D7", 1, 1, "EC AF"),
273273
"LSR.L D7,D7": Opcode("LSR.L D7,D7", 1, 1, "EE AF"),
274-
274+
275275
"SWAP D0": Opcode("SWAP D0", 1, 1, "48 40"),
276276
"SWAP D1": Opcode("SWAP D1", 1, 1, "48 41"),
277277
"SWAP D2": Opcode("SWAP D2", 1, 1, "48 42"),
@@ -280,7 +280,5 @@
280280
"SWAP D5": Opcode("SWAP D5", 1, 1, "48 45"),
281281
"SWAP D4": Opcode("SWAP D4", 1, 1, "48 44"),
282282
"SWAP D7": Opcode("SWAP D7", 1, 1, "48 47"),
283-
284-
}
285-
286283
284+
}

docs/architectures/adam.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#Adam
1+
# Adam
22

33
* http://drushel.cwru.edu/atm/atm.html
4-
5-
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#AlphatronicPC
1+
# AlphatronicPC
22

33
* http://www.old-computers.com/museum/computer.asp?st=1&c=241
4-
5-

docs/architectures/amiga_500.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
#Amiga 500
1+
# Amiga 500
22

3-
## Amos
3+
## Amos
44
From http://www.clickteam.com/eng/downloadcenter.php?i=58 (redirecting too fast) some Amos sources are available:
55
* http://www.clickteam.com/webftp/files/2/5/AMOSCompiler.zip
66
* http://www.clickteam.com/webftp/files/2/5/AMOS1_23.zip
77
* http://www.clickteam.com/webftp/files/2/5/AMOS1_3.zip
88
* http://www.clickteam.com/webftp/files/2/5/EasyAMOS.zip
99
* http://stos.atari.st/theme_2_1.html
1010

11-
## Blitz-Basic
11+
## Blitz-Basic
1212
* http://www.blitz-2000.co.uk/
1313

14-
## Amiga-Basic
14+
## Amiga-Basic
1515
* http://www.amigacoding.com/index.php/AmigaBASIC
16-
17-

docs/architectures/amstrad_cpc.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
#Amstrad CPC
1+
# Amstrad CPC
22

3-
## documentation
3+
## documentation
44
* http://cpcwiki.eu/index.php/Technical_documentation
55
* www.cpcmania.com/Docs/Programming/Programming.htm
66

7-
## games with sources
7+
## games with sources
88
* http://www.mojontwins.com/juegos_mojonos/uwol-2-cpc/
99
* http://www.mojontwins.com/juegos_mojonos/lala-prologue-cpc/
1010

11-
## Locomotive Basic
11+
## Locomotive Basic
1212
* http://www.qsl.net/hb9xch/computer/amstrad/locomotivebasic.html
1313
* http://www.grimware.org/doku.php/documentations/software/locomotive.basic/start
1414
* http://www.cpcwiki.eu/index.php/Locomotive_BASIC
1515
* http://rosettacode.org/wiki/Category:Locomotive_Basic
16-
17-

docs/architectures/apple_ii.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#Apple II
1+
# Apple II
22

33
* Applesoft Basic: http://www.txbobsc.com/scsc/scdocumentor/
4-
5-

0 commit comments

Comments
 (0)