Skip to content

Commit d774065

Browse files
committed
Changes ABS abbreviation to A.
1 parent aae8635 commit d774065

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

manual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ and the abbreviated syntax.
664664
per second in PAL systems. Use
665665
`TIMER` statement to reset to 0.
666666

667-
- ABS(_num_) / AB.(_num_) :
667+
- ABS(_num_) / A.(_num_) :
668668
Returns the absolute value of _num_.
669669
Can be used with integers and
670670
floating point.

src/basic.syn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ FP_T_EXPR: floating point constant, variable or function
123123
"-" FP_T_EXPR emit TOK_FP_NEG
124124
"+" FP_T_EXPR
125125
# FP Functions
126-
"ABs" FP_T_EXPR emit TOK_FP_ABS
126+
"Abs" FP_T_EXPR emit TOK_FP_ABS
127127
"ATn" FP_T_EXPR emit TOK_FP_ATN
128128
"SGn" FP_T_EXPR emit TOK_FP_SGN
129129
"EXp10" FP_T_EXPR emit TOK_FP_EXP10
@@ -203,7 +203,7 @@ T_EXPR: integer constant, variable or function
203203
# Variables
204204
emit TOK_VAR_LOAD E_VAR_WORD
205205
# Functions with parameters
206-
"ABs" T_EXPR emit TOK_ABS
206+
"Abs" T_EXPR emit TOK_ABS
207207
"SGn" T_EXPR emit TOK_SGN
208208
"Peek" T_EXPR emit TOK_PEEK
209209
"PAddle" emit { TOK_NUM, &PADDL0, TOK_PUSH_BYTE, 7 } RD_PORT

testsuite/tests/abbrev.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ E = 10
99
? E.
1010
D = 3
1111
? D.(1536) + D. 1536
12-
A = 1
13-
? ABSA
12+
A = -1
13+
? ABSA, A.A
1414
ABSA = 10
1515
? ABSA

testsuite/tests/abbrev.chk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Start
88
1 A 65
99
1
1010
2468
11-
1
11+
1 1
1212
10

0 commit comments

Comments
 (0)