Skip to content

Commit e5f3c2e

Browse files
committed
Change abbreviations for ELSE/ENDIF/PMGRAPHICS and PMHPOS.
Newer abbreviations are more logical and produce shorter sources, but this introduces a slight incompatibility with older abbreviated code.
1 parent d5a1243 commit e5f3c2e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

manual.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,8 @@ Control Statements
11071107
**IF _condition_ THEN _statement_ / I. T.**
11081108
**IF _condition_**
11091109
**ELIF _condition_ / ELI.**
1110-
**ELSE / E.**
1111-
**ENDIF / END.**
1110+
**ELSE / EL.**
1111+
**ENDIF / E.**
11121112

11131113
The first form (with THEN) executes
11141114
one _statement_ if the condition is
@@ -1276,7 +1276,7 @@ Graphic and Sound Statements
12761276
`COLOR` number.
12771277

12781278
**Player/Missile Graphics Mode**
1279-
**PMGRAPHICS _num_ / PM.**
1279+
**PMGRAPHICS _num_ / PMG.**
12801280

12811281
Set up Atari Player / Missile
12821282
graphics. A value of 0 disables all
@@ -1294,7 +1294,7 @@ Graphic and Sound Statements
12941294
`PMADR()` function.
12951295

12961296
**Player/Missile Horizontal Move**
1297-
**PMHPOS _num_,_pos_ / PMH.**
1297+
**PMHPOS _num_,_pos_ / PM.**
12981298

12991299
Set the horizontal position register
13001300
for the player or missile _num_ to

src/basic.syn

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,9 @@ PARSE_LINE_COMMAND:
641641
"To" EXPR STEP_OPTIONAL \
642642
emit { TOK_FOR, TOK_CNJUMP, LT_FOR_2 } E_PUSH_LT emit LT_FOR_1 E_PUSH_LT
643643
"Next" emit TOK_FOR_NEXT emit TOK_CJUMP NEXT_VARNAME E_POP_FOR emit TOK_FOR_EXIT
644-
"Else" emit TOK_JUMP emit LT_ELSE E_ELSEIF
644+
"ELse" emit TOK_JUMP emit LT_ELSE E_ELSEIF
645645
"ELIf" emit { TOK_JUMP, LT_ELIF } E_ELSEIF FORCE_BOOL_EXPR emit { TOK_CJUMP, LT_IF } E_PUSH_LT
646-
"ENDif" E_POP_IF
646+
"Endif" E_POP_IF
647647
"EXit" emit TOK_JUMP E_EXIT_LOOP
648648
"Graphics" emit { TOK_0, TOK_PMGRAPHICS, TOK_BYTE, 6, TOK_CLOSE } EXPR emit TOK_GRAPHICS
649649
"Color" EXPR emit { TOK_BYTE_POKE, COLOR }
@@ -673,8 +673,8 @@ PARSE_LINE_COMMAND:
673673
"DEG" emit { TOK_1, TOK_BYTE_POKE, DEGFLAG }
674674
"RAd" emit { TOK_0, TOK_BYTE_POKE, DEGFLAG }
675675
#@endif FASTBASIC_FP
676-
"PMgraphics" EXPR emit TOK_PMGRAPHICS
677-
"PMHpos" EXPR emit { TOK_PUSH_NUM, &HPOSP0, TOK_ADD, TOK_SADDR } "," EXPR emit TOK_POKE
676+
"PMGraphics" EXPR emit TOK_PMGRAPHICS
677+
"PMhpos" EXPR emit { TOK_PUSH_NUM, &HPOSP0, TOK_ADD, TOK_SADDR } "," EXPR emit TOK_POKE
678678
"Timer" emit { TOK_0, TOK_BYTE_POKE, 20, TOK_0, TOK_BYTE_POKE, 19 }
679679
"DLi" DLI_COMMAND
680680
"CLR" emit { TOK_NUM, &CLEAR_DATA, TOK_USR_ADDR, TOK_USR_CALL }

0 commit comments

Comments
 (0)