kolibrios-gitea/programs/develop/c--/trunk/examples/docase.map
Yogev Ezra 02b76505a6 Add sources of "C--"'like compiler written in C--.
git-svn-id: svn://kolibrios.org@1846 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-02-05 16:39:49 +00:00

72 lines
1.1 KiB
Plaintext

MAP FILE FOR DOCASE.EXE
{
docase{
EBX+=80;
// @L0:
// add EBX,80
case(ECX==10)
// mov eax,ECX
// cmp eax,0xa
// sete al
// movzx eax,al
//#list
// test eax,eax;jz @L2
EBX=10;
// mov EBX,10
case(EBX<5){
// jmp @L1
// @L2:
// mov eax,EBX
// cmp eax,0x5
// setl al
// movzx eax,al
// test eax,eax;jz @L3
ECX=5; continue;}
// mov ECX,5
// jmp @L0
default
EDX+=8;
// jmp @L1
// @L3:
// add EDX,8
}
EAX=9;
// @L1:
// mov EAX,9
}
// ret
Compile all sources
ALL GLOBAL IDENTIFIERS LIST:
tok type number post IDENTIFIER
104 1Fh 401000h 0h main
File:DOCASE.C-, line=4:
() // execution always starts at main ()
{
docase{
EBX+=80;
case(ECX==10)
//#list
EBX=10;
case(EBX<5){
ECX=5; continue;}
default
EDX+=8;
}
EAX=9;
}
1 Unique Global Identifiers.
GLOBAL CONSTANT IDENTIFIER LIST:
0 Unique Global Constant Value Identifiers.
Component Sizes:
Code:128 bytes, Post: 0 bytes
Run file size: 128 bytes
END OF MAP FILE FOR DOCASE.EXE