Yesterday work and example commenting and planning...
This commit is contained in:
@ -172,9 +172,9 @@ static void build_irregular (operation_index operation,
|
|||||||
// 40>front
|
// 40>front
|
||||||
place ((size == D8) && (to == REG) && front (destination), (byte) 0X40);
|
place ((size == D8) && (to == REG) && front (destination), (byte) 0X40);
|
||||||
|
|
||||||
place (1, (byte) (0XF6
|
place (1, (byte) (0XF8
|
||||||
+ 0X08 * ((operation == INC) || (operation == DEC))
|
+ 0X08 * ((operation == INC) || (operation == DEC))
|
||||||
+ 0X01 * (size != D8)));
|
- 0X01 * (size == D8)));
|
||||||
|
|
||||||
place (to == REG, (byte) (0XC0
|
place (to == REG, (byte) (0XC0
|
||||||
+ 0X08 * (operation - IRREGULAR_BEGIN))
|
+ 0X08 * (operation - IRREGULAR_BEGIN))
|
||||||
|
@ -1,15 +1,13 @@
|
|||||||
program heyo_world
|
program heyo_world
|
||||||
|
s8 <12> message "Heyo world!\n" // AVAR D8 12 ...
|
||||||
|
begin // DECL 0XFFFFFFFFU
|
||||||
|
|
||||||
begin
|
mov eax 1 // MOV D32 REG R0 IMM 1
|
||||||
|
mov edi 1 // MOV D32 REG R7 IMM 1
|
||||||
|
mov esi message // MOV D32 REG R6 MEM 0 [message]
|
||||||
|
mov edx 12 // MOV D32 REG R2 IMM 12
|
||||||
|
syscall // SYSCALL
|
||||||
|
|
||||||
mov eax 1
|
end program // MOV D64 REG R0 IMM 0X3CU
|
||||||
mov edi 1
|
// MOV D64 REG R7 IMM 0X0U
|
||||||
mov esi 4198610
|
// SYSCALL
|
||||||
mov edx 12
|
|
||||||
syscall
|
|
||||||
|
|
||||||
mov eax 60
|
|
||||||
mov edi 0
|
|
||||||
syscall
|
|
||||||
|
|
||||||
end program
|
|
||||||
|
@ -24,7 +24,7 @@ static char * fm [] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static char * fi [] = {
|
static char * fi [] = {
|
||||||
"11h", "1122h", "11223344h", "1122334455667788h",
|
"11223344h", "11223344h", "1122h", "11h", // "1122334455667788h",
|
||||||
};
|
};
|
||||||
|
|
||||||
int main (void) {
|
int main (void) {
|
||||||
@ -37,26 +37,26 @@ int main (void) {
|
|||||||
printf ("nop\n");
|
printf ("nop\n");
|
||||||
printf ("nop\n");
|
printf ("nop\n");
|
||||||
|
|
||||||
//~for (a = 0; a < (int) (sizeof (fa) / sizeof (* fa)); ++a) {
|
for (a = 0; a < (int) (sizeof (fa) / sizeof (* fa)); ++a) {
|
||||||
|
//~for (w = 0; w < 4; ++w) {
|
||||||
|
for (d = 0; d < 64; ++d) {
|
||||||
|
//~for (s = 0; s < 16; ++s) {
|
||||||
|
printf ("nop\n");
|
||||||
|
printf ("%s %s, %s\n", fa [a], fr [d], fi [d / 16]);
|
||||||
|
//~}
|
||||||
|
}
|
||||||
|
//~}
|
||||||
|
}
|
||||||
|
|
||||||
|
//~for (a = 0; a < (int) (sizeof (faa) / sizeof (* faa)); ++a) {
|
||||||
//~for (w = 0; w < 4; ++w) {
|
//~for (w = 0; w < 4; ++w) {
|
||||||
//~for (d = 0; d < 16; ++d) {
|
//~for (d = 0; d < 16; ++d) {
|
||||||
//~for (s = 0; s < 16; ++s) {
|
//~printf ("nop\n");
|
||||||
//~printf ("nop\n");
|
//~printf ("%s %s\n", faa [a], fr [d + 16 * w]);
|
||||||
//~printf ("%s %s, %s\n", fa [a], fr [d + 16 * w], fr [s + 16 * w]);
|
|
||||||
//~}
|
|
||||||
//~}
|
//~}
|
||||||
//~}
|
//~}
|
||||||
//~}
|
//~}
|
||||||
|
|
||||||
for (a = 0; a < (int) (sizeof (faa) / sizeof (* faa)); ++a) {
|
|
||||||
for (w = 0; w < 4; ++w) {
|
|
||||||
for (d = 0; d < 16; ++d) {
|
|
||||||
printf ("nop\n");
|
|
||||||
printf ("%s %s\n", faa [a], fr [d + 16 * w]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
printf ("nop\n");
|
printf ("nop\n");
|
||||||
printf ("nop\n");
|
printf ("nop\n");
|
||||||
printf ("nop\n");
|
printf ("nop\n");
|
||||||
|
@ -18,19 +18,39 @@ static char * fr [] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static char * fi [] = {
|
static char * fi [] = {
|
||||||
"0x11", "0x1122", "0x11223344", "0x1122334455667788",
|
"IMM, 0x11223344", "IMM, 0x11223344", "IMM, 0x1122", "IMM, 0x11", //, "IMM, 0x1122334455667788",
|
||||||
};
|
};
|
||||||
|
|
||||||
int main (void) {
|
int main (void) {
|
||||||
int a, w, t, d, f, s;
|
int a, w, t, d, f, s;
|
||||||
|
|
||||||
for (a = 0; a < (int) (sizeof (faa) / sizeof (* faa)); ++a) {
|
for (a = 0; a < (int) (sizeof (fa) / sizeof (* fa)); ++a) {
|
||||||
for (w = 0; w < 4; ++w) {
|
for (w = 0; w < 4; ++w) {
|
||||||
for (d = 0; d < 16; ++d) {
|
for (d = 0; d < 16; ++d) {
|
||||||
printf ("NOP, %s, %s, %s,\n", faa [a], fw [w], fr [d]);
|
//~for (s = 0; s < 16; ++s) {
|
||||||
|
printf ("NOP, %s, %s, %s, %s,\n", fa [a], fw [w], fr [d], fi [w]);
|
||||||
|
//~}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//~for (a = 0; a < (int) (sizeof (faa) / sizeof (* faa)); ++a) {
|
||||||
|
//~for (w = 0; w < 4; ++w) {
|
||||||
|
//~for (d = 0; d < 16; ++d) {
|
||||||
|
//~for (s = 0; s < 16; ++s) {
|
||||||
|
//~printf ("NOP, %s, %s, %s, %s,\n", faa [a], fw [w], fr [d], fi [s]);
|
||||||
|
//~}
|
||||||
|
//~}
|
||||||
|
//~}
|
||||||
|
//~}
|
||||||
|
|
||||||
|
//~for (a = 0; a < (int) (sizeof (faa) / sizeof (* faa)); ++a) {
|
||||||
|
//~for (w = 0; w < 4; ++w) {
|
||||||
|
//~for (d = 0; d < 16; ++d) {
|
||||||
|
//~printf ("NOP, %s, %s, %s,\n", faa [a], fw [w], fr [d]);
|
||||||
|
//~}
|
||||||
|
//~}
|
||||||
|
//~}
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user