Use preprocessor flags

This commit is contained in:
Alfred Kamanda 2024-08-31 11:56:36 +03:00
parent ec4201139a
commit 9fb3ef8e2a
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703
6 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
RELOAD verify_pin RELOAD verify_pin
CATCH create_pin_mismatch 20 1 CATCH create_pin_mismatch pin_mismatch_flag 1
LOAD quit 0 LOAD quit 0
HALT HALT

View File

@ -1,3 +1,3 @@
RELOAD check_account_status RELOAD check_account_status
CATCH main 11 1 CATCH main account_success_flag 1
HALT HALT

View File

@ -5,7 +5,7 @@ MOUT back 0
HALT HALT
LOAD validate_amount 64 LOAD validate_amount 64
RELOAD validate_amount RELOAD validate_amount
CATCH invalid_amount 17 1 CATCH invalid_amount invalid_amount_flag 1
INCMP _ 0 INCMP _ 0
LOAD get_recipient 12 LOAD get_recipient 12
LOAD get_sender 64 LOAD get_sender 64

View File

@ -1,9 +1,9 @@
LOAD create_account 0 LOAD create_account 0
CATCH account_creation_failed 22 1 CATCH account_creation_failed account_creation_failed_flag 1
MOUT exit 0 MOUT exit 0
HALT HALT
LOAD save_pin 0 LOAD save_pin 0
RELOAD save_pin RELOAD save_pin
CATCH . 15 1 CATCH . incorrect_pin_flag 1
INCMP quit 0 INCMP quit 0
INCMP confirm_create_pin * INCMP confirm_create_pin *

View File

@ -3,6 +3,6 @@ MOUT back 0
HALT HALT
LOAD validate_recipient 20 LOAD validate_recipient 20
RELOAD validate_recipient RELOAD validate_recipient
CATCH invalid_recipient 13 1 CATCH invalid_recipient invalid_recipient_flag 1
INCMP _ 0 INCMP _ 0
INCMP amount * INCMP amount *

View File

@ -8,7 +8,7 @@ MOUT quit 9
HALT HALT
LOAD authorize_account 1 LOAD authorize_account 1
RELOAD authorize_account RELOAD authorize_account
CATCH incorrect_pin 15 1 CATCH incorrect_pin incorrect_pin_flag 1
INCMP _ 0 INCMP _ 0
INCMP quit 9 INCMP quit 9
MOVE transaction_initiated MOVE transaction_initiated