c2e.convert_special: 0
e2c.convert_num: 0
-openfiles: /dos/z/16/16/dos_gfx.cpp:5935:5677:0:
-openfiles: /dos/z/16/16/dos_gfx.h:910:518:0:
+openfiles: /dos/z/16/16/dos_gfx.cpp:7655:7604:0:
+openfiles: /dos/z/16/16/dos_gfx.h:910:295:0:
openfiles: /dos/z/16/16/dos_kb.c:217:0:0:
openfiles: /dos/z/16/16/dos_kb.h:161:0:0:
openfiles: /dos/z/16/16/lib/lib_com.cpp:2:0:0:
-openfiles: /dos/z/16/16/lib/lib_com.h:160:0:0:
+openfiles: /dos/z/16/16/lib/lib_com.h:633:1027:0:
openfiles: /dos/z/16/16/scroll.txt:5256:4537:0:
openfiles: /dos/z/16/16/project16.txt:8063:6091:0:
openfiles: /dos/z/16/16/16.txt:0:0:0:
openfiles: /dos/z/16/16/lib/x/MODEX.H:5511:2798:0:
openfiles: /dos/z/16/16/TEST.C:430:6112:0:
-openfiles: /dos/z/16/16/modex16/scroll.c:2383:1718:1:
+openfiles: /dos/z/16/16/modex16/scroll.c:1610:1479:1:
snr_recursion_level: 0
convertcolumn_horizontally: 0
adv_open_matchname: 0
default_mime_type: text/plain
e2c.convert_xml: 1
c2e.convert_iso: 0
-opendir: file:///dos/z/16/16/modex16
+opendir: file:///dos/z/16/16/lib
wrap_text_default: 0
bookmarks_filename_mode: 1
ssearch_text: mapScrollRight
recent_files: file:///dos/z/16/16/modex16/PCXTEST.C
recent_files: file:///dos/z/16/16/lib/MODEX16.C
recent_files: file:///dos/z/16/16/lib/MODEX16.H
+recent_files: file:///dos/z/16/16/modex16/SCROLL.C
+recent_files: file:///dos/z/16/16/modex16/scroll.c
recent_files: file:///dos/z/16/16/dos_gfx.h
+recent_files: file:///dos/z/16/16/dos_gfx.cpp
+recent_files: file:///dos/z/16/16/lib/lib_com.h
recent_files: file:///dos/z/16/16/dos_kb.c
recent_files: file:///dos/z/16/16/dos_kb.h
recent_files: file:///dos/z/16/16/lib/lib_com.cpp
-recent_files: file:///dos/z/16/16/dos_gfx.cpp
-recent_files: file:///dos/z/16/16/project16.txt
-recent_files: file:///dos/z/16/16/lib/lib_com.h
recent_files: file:///dos/z/16/16/scroll.txt
-recent_files: file:///dos/z/16/16/TEST.C
+recent_files: file:///dos/z/16/16/project16.txt
recent_files: file:///dos/z/16/16/16.txt
+recent_files: file:///dos/z/16/16/TEST.C
recent_files: file:///dos/z/16/16/lib/x/MODEX.H
-recent_files: file:///dos/z/16/16/modex16/SCROLL.C
-recent_files: file:///dos/z/16/16/modex16/scroll.c
snr_replacetype: 0
savedir: file:///dos/z/16/16/modex16
spell_check_default: 1
void main() {\r
int show1=1;\r
int tx, ty;\r
- int x, y;\r
+ int x, y;
+ int ch=0x0;\r
page_t screen;\r
map_t map;\r
map_view_t mv;\r
byte *ptr;\r
\r
/* create the map */\r
- map = allocMap(80,60);\r
+ map = allocMap(40,30);\r
initMap(&map);\r
mv.map = ↦\r
\r
mv.page = &screen;\r
mapGoTo(&mv, 0, 0);\r
modexShowPage(mv.page);\r
-\r
- /* scroll all the way to the right */\r
- for(x=0; x<(map.width*16-SCREEN_WIDTH); x++) {\r
- mapScrollRight(&mv, 1);\r
+
+ while(1){ \r
+ // scroll all the way to the right\r
+ //for(x=0; x<(map.width*16-SCREEN_WIDTH); x++) {
+ if(ch==0x4d){\r
+ mapScrollRight(&mv, 4);\r
modexShowPage(mv.page);\r
}\r
\r
- /* scroll all the way to the left */\r
- for(; x>0; x--) {\r
- mapScrollLeft(&mv, 1);\r
+ // scroll all the way to the left\r
+ //for(; x>0; x--) {
+ if(ch==0x4b){\r
+ mapScrollLeft(&mv, 4);\r
modexShowPage(mv.page);\r
}\r
\r
- /* scroll all the way down */\r
- for(y=0; y<(map.height*16-SCREEN_HEIGHT); y++) {\r
- mapScrollDown(&mv, 1);\r
+ // scroll all the way down\r
+ //for(y=0; y<(map.height*16-SCREEN_HEIGHT); y++) {
+ if(ch==0x50){\r
+ mapScrollDown(&mv, 4);\r
modexShowPage(mv.page);\r
}\r
\r
- /* scroll all the way up */\r
- for(; y>0; y--) {\r
- mapScrollUp(&mv, 1);\r
+ // scroll all the way up\r
+ //for(; y>0; y--) {
+ if(ch==0x48){\r
+ mapScrollUp(&mv, 4);\r
modexShowPage(mv.page);\r
}\r
\r
- /* spin for a time */\r
- for(x=0; x<500; x++) {\r
+ // spin for a time \r
+ /*for(x=0; x<500; x++) {\r
modexWaitBorder();\r
- }\r
-\r
+ }*/
+ //while(1){
+ ch=getch();
+ //printf("0x%02x\n", ch);\r
+ if(ch==0x71)break; // 'q'\r
+ if(ch==0x1b)break; // 'ESC'\r
+}\r
modexLeave();\r
}\r
\r