Browse Source

Code cleaning

Yann Weber 5 years ago
parent
commit
bb420e596d
1 changed files with 2 additions and 11 deletions
  1. 2
    11
      yaglitch.asm

+ 2
- 11
yaglitch.asm View File

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

Loading…
Cancel
Save