structure app output

This commit is contained in:
2026-02-23 15:53:28 +01:00
parent 8d157e1bcd
commit 45e522941d
3 changed files with 24 additions and 6 deletions

View File

@@ -8,14 +8,21 @@ extern "C" void main() {
//sys_test(1,2,3,4,5);
unsigned id = sys_getpid();
char text[] = "testX";
char text[] = "app X";
text[4] = 0x30+id;
char buf= 32 ;
char buf = 32;
write(1, text, sizeof(text), 0, (int)id);
uint8_t cnt = 0;
for (unsigned i = 1;; ++i) {
write(1, text, sizeof(text));
char msg[5];
msg[0] = 0x30+cnt;
msg[1] = 0;
cnt=(cnt+1)%10;
write(1, msg, sizeof(text), 6, (int)id);
void* ptr= map(512);
//sprintf(&buf, "ptr address: %x \n" , ptr);
//unmap(ptr, 512);