formatting

This commit is contained in:
Irmen de Jong 2021-11-29 01:25:21 +01:00
parent 56dc6d7f1e
commit 4ac169b210
2 changed files with 10 additions and 10 deletions

View File

@ -3,6 +3,10 @@ TODO
For next compiler release (7.4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BUG: balls example crashes / animates wrong!
Use GoSub to call subroutines (statements):
- [DONE] allow separate assigns to subroutine's parameter variables / registers
- [DONE] turn a regular subroutine call into assignments to the parameters + GoSub (take code from gosub branch)

View File

@ -45,14 +45,11 @@ main {
if DX[lp] == 0 {
if (BX[lp] == 0)
{
DX[lp] = 1
} else {
else
BX[lp]=BX[lp]-1
}
} else if DX[lp] == 1 {
if (BX[lp] == txt.DEFAULT_WIDTH-1)
{
if (BX[lp] == txt.DEFAULT_WIDTH-1) {
BX[lp] = txt.DEFAULT_WIDTH-2
DX[lp] = 0
} else {
@ -61,14 +58,11 @@ main {
}
if DY[lp] == 0 {
if (BY[lp] == 0)
{
DY[lp] = 1
} else {
else
BY[lp]=BY[lp]-1
}
} else if DY[lp] == 1 {
if (BY[lp] == txt.DEFAULT_HEIGHT-1)
{
if (BY[lp] == txt.DEFAULT_HEIGHT-1) {
BY[lp] = txt.DEFAULT_HEIGHT-2
DY[lp] = 0
} else {
@ -82,6 +76,8 @@ main {
;txt.plot(0,0)
;txt.print_uw(frame)
sys.waitvsync()
}
uword jiffies = c64.RDTIM16()