Skip to content

Commit

Permalink
Révision V5.0R6 modification de l'évaluation des conditions. Les term…
Browse files Browse the repository at this point in the history
…es des conditions et des relations ne peuvent-être entre parenthèses
  • Loading branch information
Picatout committed Jun 27, 2023
1 parent 22cc4b4 commit 7f36579
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 227 deletions.
15 changes: 4 additions & 11 deletions TinyBasic.asm
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ move_exit:
;-----------------------
MAJOR=5
MINOR=0
REV=5
REV=6
software: .asciz "\n\nTiny BASIC for STM8\nCopyright, Jacques Deschenes 2019,2022,2023\nversion "
board:
Expand Down Expand Up @@ -1176,7 +1176,7 @@ relation:
ret

;-------------------------------------------
; AND factor: [NOT] relation | (condition)
; AND factor: [NOT] relation
; output:
; A:X boolean
;-------------------------------------------
Expand All @@ -1191,15 +1191,8 @@ and_factor:
jrne 2$
cpl (NOT_OP,sp)
_next_token
2$: cp a,#LPAREN_IDX
jrne 3$
call condition
push a
ld a,#RPAREN_IDX
call expect
pop a
jra 5$
3$:
jra 4$
2$:
_unget_token
4$:
call relation
Expand Down
Binary file modified build/stm8s207k8/TinyBasic.bin
Binary file not shown.
Loading

0 comments on commit 7f36579

Please sign in to comment.