diff options
| author | spv420 <unomilliono@gmail.com> | 2022-04-24 07:27:47 -0400 |
|---|---|---|
| committer | spv420 <unomilliono@gmail.com> | 2022-04-24 07:27:47 -0400 |
| commit | 202fff8a0da664f8aa4e03e9e9e11fe0b8d87199 (patch) | |
| tree | dd7052eba54df7f7d24c92a2301c0da28260f9e1 /src/js/main.js | |
| parent | 7fdce8d27df9fa1288238c4829961f1e97f71c31 (diff) | |
yeet
Diffstat (limited to 'src/js/main.js')
| -rw-r--r-- | src/js/main.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/js/main.js b/src/js/main.js index 410b588..4c5ca98 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -8,8 +8,9 @@ var MAX_SLIDE = 0x3; var MIN_SLIDE = 0x1; -var ARM_THREAD_STATE = 0x1; var ARM_THREAD_STATE_COUNT = 0x11; +var ARM_THREAD_STATE = 0x1; +var LOG_SYSLOG = 0x28; try { puts("we out here in jsc"); @@ -45,16 +46,10 @@ function main() { printf("*(uint16_t*)base = 0x%x\n", read_u16(base)); printf("*(uint32_t*)base = 0x%x\n", read_u32(base)); - scall("printf", "Hello world! %x %x %x %x %x %x %x %x %x %x %x %x %x\n", 0x420, 0x69, 0x1337, 0x13371337, 0xb1a7e17, 0x41424344); - scall("printf", "Hello world! %x %x %x %x %x %x %x %x %x %x %x %x %x\n", 0x420, 0x69, 0x1337, 0x13371337, 0xb1a7e17, 0x41424344); - scall("printf", "Hello world! %x %x %x %x %x %x %x %x %x %x %x %x %x\n", 0x420, 0x69, 0x1337, 0x13371337, 0xb1a7e17, 0x41424344); - scall("printf", "Hello world! %x %x %x %x %x %x %x %x %x %x %x %x %x\n", 0x420, 0x69, 0x1337, 0x13371337, 0xb1a7e17, 0x41424344); - scall("printf", "Hello world! %x %x %x %x %x %x %x %x %x %x %x %x %x\n", 0x420, 0x69, 0x1337, 0x13371337, 0xb1a7e17, 0x41424344); - var i = 0; while (true) { - calls4arg("syslog", 0x28, sptr("get rekt from jsc %d (slide=%x)\n"), i, slide); - calls4arg("sleep", 1, 0, 0, 0); + syslog(LOG_SYSLOG, "get rekt from jsc %d (slide=%x)\n", i, slide); + sleep(1); i++; } |
