| ... | ... |
@@ -15,7 +15,7 @@ |
| 15 | 15 |
|00 @System [ &vector $2 &pad $6 &r $2 &g $2 &b $2 ] |
| 16 | 16 |
|20 @Screen [ &vector $2 &width $2 &height $2 &pad $2 &x $2 &y $2 &addr $2 &color $1 ] |
| 17 | 17 |
|60 @Mouse [ &vector $2 &x $2 &y $2 &state $1 &chord $1 ] |
| 18 |
-|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 &refresh $1 ] |
|
| 18 |
+|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 ] |
|
| 19 | 19 |
|
| 20 | 20 |
( variables ) |
| 21 | 21 |
|
| ... | ... |
@@ -51,8 +51,6 @@ |
| 51 | 51 |
BRK |
| 52 | 52 |
|
| 53 | 53 |
@on-frame ( -> ) |
| 54 |
- |
|
| 55 |
- #00 .DateTime/refresh DEO |
|
| 56 | 54 |
|
| 57 | 55 |
( only draw once per second ) |
| 58 | 56 |
.DateTime/second DEI .last PEK NEQ #01 JNZ [ BRK ] |
| ... | ... |
@@ -9,7 +9,7 @@ |
| 9 | 9 |
|40 @Controller [ &vector $2 &button $1 &key $1 ] |
| 10 | 10 |
|60 @Mouse [ &vector $2 &x $2 &y $2 &state $1 &chord $1 ] |
| 11 | 11 |
|70 @File [ &vector $2 &success $2 &offset $2 &pad $2 &name $2 &length $2 &load $2 &save $2 ] |
| 12 |
-|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 &refresh $1 ] |
|
| 12 |
+|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 ] |
|
| 13 | 13 |
|
| 14 | 14 |
( variables ) |
| 15 | 15 |
|
| ... | ... |
@@ -11,7 +11,7 @@ |
| 11 | 11 |
|
| 12 | 12 |
|00 @System [ &vector $2 &pad $6 &r $2 &g $2 &b $2 ] |
| 13 | 13 |
|20 @Screen [ &vector $2 &width $2 &height $2 &pad $2 &x $2 &y $2 &addr $2 &color $1 ] |
| 14 |
-|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 &refresh $1 ] |
|
| 14 |
+|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 ] |
|
| 15 | 15 |
|
| 16 | 16 |
( variables ) |
| 17 | 17 |
|
| ... | ... |
@@ -36,8 +36,6 @@ |
| 36 | 36 |
BRK |
| 37 | 37 |
|
| 38 | 38 |
@on-frame |
| 39 |
- |
|
| 40 |
- #00 .DateTime/refresh DEO |
|
| 41 | 39 |
|
| 42 | 40 |
( only draw once per second ) |
| 43 | 41 |
.DateTime/second DEI .current PEK NEQ #01 JNZ [ BRK ] |
| ... | ... |
@@ -7,7 +7,7 @@ |
| 7 | 7 |
|40 @Controller [ &vector $2 &button $1 &key $1 ] |
| 8 | 8 |
|60 @Mouse [ &vector $2 &x $2 &y $2 &state $1 &chord $1 ] |
| 9 | 9 |
|70 @File [ &vector $2 &success $2 &offset $2 &pad $2 &name $2 &length $2 &load $2 &save $2 ] |
| 10 |
-|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 &refresh $1 ] |
|
| 10 |
+|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 ] |
|
| 11 | 11 |
|
| 12 | 12 |
( variables ) |
| 13 | 13 |
|
| ... | ... |
@@ -13,7 +13,7 @@ |
| 13 | 13 |
|40 @Controller [ &vector $2 &button $1 &key $1 ] |
| 14 | 14 |
|60 @Mouse [ &vector $2 &x $2 &y $2 &state $1 &chord $1 ] |
| 15 | 15 |
|70 @File [ &vector $2 &success $2 &offset $2 &pad $2 &name $2 &length $2 &load $2 &save $2 ] |
| 16 |
-|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 &refresh $1 ] |
|
| 16 |
+|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 ] |
|
| 17 | 17 |
|
| 18 | 18 |
( variables ) |
| 19 | 19 |
|
| ... | ... |
@@ -14,7 +14,7 @@ |
| 14 | 14 |
|00 @System [ &vector $2 &pad $6 &r $2 &g $2 &b $2 ] |
| 15 | 15 |
|10 @Console [ &vector $2 &pad $6 &char $1 &byte $1 &short $2 &string $2 ] |
| 16 | 16 |
|20 @Screen [ &vector $2 &width $2 &height $2 &pad $2 &x $2 &y $2 &addr $2 &color $1 ] |
| 17 |
-|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 &refresh $1 ] |
|
| 17 |
+|a0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 ] |
|
| 18 | 18 |
|
| 19 | 19 |
( variables ) |
| 20 | 20 |
|
| ... | ... |
@@ -194,7 +194,6 @@ |
| 194 | 194 |
,&loop JMP |
| 195 | 195 |
|
| 196 | 196 |
@update-fps ( -- ) |
| 197 |
- #00 .DateTime/refresh DEO |
|
| 198 | 197 |
.fps/next PEK #01 ADD .fps/next POK |
| 199 | 198 |
s .fps/second PEK NEQ JMP JMP2r |
| 200 | 199 |
s .fps/second POK |
| ... | ... |
@@ -22,7 +22,7 @@ Uint8 peek8(Stack *s, Uint8 a) { if (s->ptr < a + 1) s->error = 1; return s->da
|
| 22 | 22 |
void mempoke8(Uint8 *m, Uint16 a, Uint8 b) { m[a] = b; }
|
| 23 | 23 |
Uint8 mempeek8(Uint8 *m, Uint16 a) { return m[a]; }
|
| 24 | 24 |
void devpoke8(Device *d, Uint8 a, Uint8 b) { d->dat[a & 0xf] = b; d->talk(d, a & 0x0f, 1); }
|
| 25 |
-Uint8 devpeek8(Device *d, Uint8 a) { return d->dat[a & 0xf]; d->talk(d, a & 0x0f, 0); }
|
|
| 25 |
+Uint8 devpeek8(Device *d, Uint8 a) { d->talk(d, a & 0x0f, 0); return d->dat[a & 0xf]; }
|
|
| 26 | 26 |
void push16(Stack *s, Uint16 a) { push8(s, a >> 8); push8(s, a); }
|
| 27 | 27 |
Uint16 pop16(Stack *s) { return pop8(s) + (pop8(s) << 8); }
|
| 28 | 28 |
Uint16 peek16(Stack *s, Uint8 a) { return peek8(s, a * 2) + (peek8(s, a * 2 + 1) << 8); }
|