- 注册时间
- 2006-10-21
- 最后登录
- 1970-1-1
|
如果帖子有不对的地方,望斑竹帮忙更正!!!!!!!
下面的是我和starwing高中时研究LAV文件结构时发现的LAV伪指令,前面是16进制的伪代码,后面是相应的LAVA库函数。
一般函数:
80 putchar 81 getchar
82 printf 83 strcpy
84 strlen 85 SetScreen
86 updataLCD 87 Delay
88 WriteBlock 89 Refresh
8A TextOut 8B block
8C Rectangle 8D exit
8E ClearScreen8F abs
90 rand 91 srand
92 Locate 93 Inkey
94 Point 95 GetPoint
96 Line 97 Box
98 Circle 99 Ellipse
9A Beep 9B isalnum
9C isalpha 9D iscntrl
9E isdigit 9F isgraph
A0 islower A1 isprint
A2 ispunct A3 isspace
A4 isupper A5 isxdigit
A6 strcat A7 strchr
A8 strcmp A9 strstr
AA tolower AB toupper
AC memset AD memcpy
AE fopen AF fclose
B0 fread B1 fwrite
B2 fseek B3 ftell
B4 feof B5 rewind
B6 getc B7 putc
B8 sprintf B9 MakeDir
BA DeleteFile BB Getms
BC CheckKey BD memmove
BE Crc16 BF Secret
C0 ChDir C1 FileList
C2 GetTime C3 SetTime
C4 GetWord C5 Xdraw
C6 ReleaseKey C7GetBlock
C8 Sin C9 Cos
CA FillArea CB SetGraphMode
CC SetBgColor CD SetFgColor
CE SetList CF Fade
D0 D1 FindFile
D2 GetFileNum
例如:fwrite(data,1,5,fp);编译后成为02xxxx0101010502xxxxB138。前面的xxxx是指data指向的内存单元的地址,后面的xxxx是指fp指向的内存单元的地址,最后的38说明该函数有返回值。
系统函数:D3调用,即根据最后参数的不同调用不同的系统函数。
00 System.GetPID
01 System.SetBrightness
02 System.GetBrightness
03 System.ComOpen
04 System.ComClose
05 System.WaitReady
06 System.SetTimer
07 System.Getc
08 System.Putc
09 System.ComRead
0A System.ComWrite
0B System.ComXor
0C System.RamRead
0D System.DiskReclaim
0E System.DiskCheck
0F System.FlmDecode
10 System.SndPlay
11 System.SndOpen
12 System.SndClose
13 System.SndIfEnd
14 System.PY2GB
15 System.SndPlayFile
16 System.SndSetVolume
17 System.SndGetVolume
18 System.SndStop
19 System.SndPause
1A System.SndResume
1B System.SndGetPlay
1C System.Idle
1D System.FindFileEx
1E System.GetFileNumEx
1F System.GetTickCount
20 System.PeekMessage
例如:System.SetBrightness(5);编译后成为01050101D3。至于LEE为什么要这样设计,那我就不清楚了。
关于0x80以前的由于整理的资料的遗失,无法搞出来。希望starwing看见这篇文章后,在后面跟出来补充完整!谢谢!! |
|