|
@@ -344,6 +344,7 @@ sdl_init:
|
344
|
344
|
mov rsi, audiospec_recv
|
345
|
345
|
call SDL_OpenAudio
|
346
|
346
|
|
|
347
|
+ ; 256*256 window
|
347
|
348
|
;mov rdi, 256
|
348
|
349
|
;mov rsi, 255
|
349
|
350
|
;mov rdx, 32
|
|
@@ -356,22 +357,12 @@ audio_start:
|
356
|
357
|
xor rdi, rdi
|
357
|
358
|
call SDL_PauseAudio
|
358
|
359
|
|
359
|
|
- ;0x00010001
|
360
|
|
- ;0x00020001
|
361
|
|
- ;0x00020101
|
362
|
|
- ;0x00010101
|
363
|
|
- ;mov rdi, 15000
|
364
|
|
- ;call SDL_Delay
|
365
|
|
-
|
366
|
|
- ;xor rdi, rdi
|
367
|
360
|
loop_event:
|
368
|
361
|
mov rdi, event
|
369
|
362
|
call SDL_WaitEvent
|
370
|
363
|
|
371
|
|
-dbg:
|
372
|
364
|
xor rdi, rdi
|
373
|
365
|
mov edi, [event]
|
374
|
|
- mov rsi, 1
|
375
|
366
|
cmp edi, 0
|
376
|
367
|
jl exit ; SIGINT
|
377
|
368
|
cmp edi, 0x00010001 ; SDL_QUIT PRESS ?
|
|
@@ -606,7 +597,7 @@ run_glitch:
|
606
|
597
|
mov ebx, [tosp]
|
607
|
598
|
lea rdi, [stack_buff + rbx]
|
608
|
599
|
mov eax, [rdi]
|
609
|
|
-; DEBUG
|
|
600
|
+; DEBUG (can be use to output data to stdout)
|
610
|
601
|
;push rax
|
611
|
602
|
;xor rdi, rdi
|
612
|
603
|
;mov rdi, rax
|