Mercurial > hg > Members > kono > os9 > sbc09
comparison TL1/Todo @ 180:c3145f913f3d
possible features
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 04 May 2019 11:17:42 +0900 |
parents | 3770e86114aa |
children |
comparison
equal
deleted
inserted
replaced
179:41d578d28d8c | 180:c3145f913f3d |
---|---|
1 Sat May 4 10:39:12 JST 2019 | |
2 | |
3 possible extension | |
4 | |
5 array as an arguments | |
6 put entire array on stack ( callee's local variable ) | |
7 ARRAY TEND[] allocate pointer size buffer 2 for 6809, 4 for 32bit, 8 for 64bit | |
8 anonymous array | |
9 "test" | |
10 "test\n\0" | |
11 INT(0,1,2,3) ARRAY of CPU endian orderd int | |
12 | |
13 memory stream | |
14 DICT := OPENM(INT(2,0)) allocate $200 memory | |
15 write to the stream (should be BYTE(0)) | |
16 WRITE(DICT:ASCII(0)) | |
17 | |
18 TEND := POSITION(DICT) get stream pointer in TENC | |
19 return array offset in frame pointer, copied in caller's code | |
20 SEEK(DICT,INT(0)) set position in byte | |
21 | |
22 VAL := SEEK(DICT,TEND) set absolute position to TEND and get the value | |
23 K:=SEEKR(DICT,-1) seek relative and get a value (K can be an array) | |
24 HASNEXT(DICT) eof check | |
25 | |
26 multibyte arithmetic | |
27 NEG(PTR) | |
28 PTR := PTR+PTR1 | |
29 PTR := PTR-PTR1 | |
30 PTR := PTR*PTR1 | |
31 PTR := PTR/PTR1 | |
32 | |
1 Mon Apr 15 00:18:30 JST 2019 | 33 Mon Apr 15 00:18:30 JST 2019 |
2 | 34 |
3 8bit/16bit offset | 35 8bit/16bit offset |
4 -1 | 36 -1 |
5 expression as statement | 37 expression as statement |