question about template
I noticed that the following statements are at the bottom of the template.· What purpose do they serve?
What is Page 1 code, page 2 code etc.?
'
' Page 1 Code
'
Page_1:
· ADDRESS $200
P1_Start:
· GOTO P1_Start································ ' error if Pg0 overruns Pg1
'
' Page 2 Code
'
Page_2:
· ADDRESS $400
P2_Start:
· GOTO P2_Start································ ' error if Pg1 overruns Pg2
'
' Page 3 Code
'
Page_3:
· ADDRESS $600
P3_Start:
· GOTO P3_Start································ ' error if Pg3 overruns Pg4
What is Page 1 code, page 2 code etc.?
'
' Page 1 Code
'
Page_1:
· ADDRESS $200
P1_Start:
· GOTO P1_Start································ ' error if Pg0 overruns Pg1
'
' Page 2 Code
'
Page_2:
· ADDRESS $400
P2_Start:
· GOTO P2_Start································ ' error if Pg1 overruns Pg2
'
' Page 3 Code
'
Page_3:
· ADDRESS $600
P3_Start:
· GOTO P3_Start································ ' error if Pg3 overruns Pg4
Comments
If you are using SX/B only, this template is a little old-fashioned, as the current release of SX/B automatically uses @ with assembly JMPs (what does this mean to you -- that it doesn't matter what code the page is on, and the automatic setup of subs and functions also means you are not required to carefully place subs where they can be called).
However if you are mixing ASM and Pbasic, there is something to be said for organizing by pages (blocks of 512 instructions) because you do NOT need the @ if you are JMPing to a label within the same page. This saves huge amount of code space if you have a lot of jmps. You would only need the JMP @label if you are jumping to a label on another page.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php