lots of changes, created Disassembler class, removed a few globals etc.
This commit is contained in:
35
tests/initial_base/STRLEN.b
Normal file
35
tests/initial_base/STRLEN.b
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Input file : test\strlen.exe
|
||||
* File type : EXE
|
||||
*/
|
||||
|
||||
#include "dcc.h"
|
||||
|
||||
|
||||
void proc_1 (int arg0)
|
||||
/* Takes 2 bytes of parameters.
|
||||
* High-level language prologue code.
|
||||
* C calling convention.
|
||||
*/
|
||||
{
|
||||
int loc1;
|
||||
|
||||
loc1 = 0;
|
||||
arg0 = (arg0 + 1);
|
||||
while ((*arg0 != 0)) {
|
||||
loc1 = (loc1 + 1);
|
||||
arg0 = (arg0 + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void main ()
|
||||
/* Takes no parameters.
|
||||
*/
|
||||
{
|
||||
int loc1;
|
||||
|
||||
loc1 = 404;
|
||||
proc_1 (loc1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user