mirror of
https://github.com/irmen/prog8.git
synced 2024-11-20 03:32:05 +00:00
tiny optimization and doc
This commit is contained in:
parent
aac5a4c27f
commit
de5ce0f515
@ -20,7 +20,7 @@ Module
|
||||
A module file can *import* other modules, including *library modules*.
|
||||
|
||||
Comments
|
||||
Everything after a semicolon ``;`` is a comment and is ignored by the compiler.
|
||||
Everything after a semicolon ``;`` is a comment and is ignored by the compiler. There is no block-comment.
|
||||
If the whole line is just a comment, this line will be copied into the resulting assembly source code for reference.
|
||||
|
||||
Directive
|
||||
|
@ -20,7 +20,8 @@ You can use tabs or spaces as you wish.
|
||||
Source code comments
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Everything after a semicolon ``;`` is a comment and is ignored.
|
||||
Everything after a semicolon ``;`` is a comment and is ignored. There is no block-comment so just
|
||||
comment out each individual line if you want to comment out a bunch of them.
|
||||
If the whole line is just a comment, it will be copied into the resulting assembly source code.
|
||||
This makes it easier to understand and relate the generated code. Examples::
|
||||
|
||||
|
@ -189,8 +189,7 @@ interrupt {
|
||||
ldx #4
|
||||
- ldy #0
|
||||
- lda (cx16.r0),y
|
||||
sec
|
||||
sbc #128 ; convert to signed
|
||||
eor #$80 ; convert to signed 8-bit
|
||||
sta cx16.VERA_AUDIO_DATA
|
||||
iny
|
||||
bne -
|
||||
|
Loading…
Reference in New Issue
Block a user