Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 519:154b1d1c489e
NEW added GF surface display.
author | JeanDo |
---|---|
date | Tue, 06 Dec 2011 18:02:18 +0100 |
parents | 6e57b5bb98ce |
children | 3091628b2742 |
comparison
equal
deleted
inserted
replaced
518:52f3f3f39932 | 519:154b1d1c489e |
---|---|
501 ostc_debug 'T' ; Sends debug-information to screen if debugmode active | 501 ostc_debug 'T' ; Sends debug-information to screen if debugmode active |
502 | 502 |
503 ostc_debug 'G' ; Sends debug-information to screen if debugmode active | 503 ostc_debug 'G' ; Sends debug-information to screen if debugmode active |
504 call deco_calc_desaturation_time ; calculate desaturation time | 504 call deco_calc_desaturation_time ; calculate desaturation time |
505 movlb b'00000001' ; select ram bank 1 | 505 movlb b'00000001' ; select ram bank 1 |
506 | 506 |
507 ; Reset gradient factor until next computation, to avoid spurious | |
508 ; displays after simulation. | |
509 clrf WREG | |
510 movff WREG,char_O_gradient_factor | |
511 movff WREG,char_O_relative_gradient_GF | |
512 | |
507 ; Note: should not reset nofly-time here: the true value have continued to be decremented | 513 ; Note: should not reset nofly-time here: the true value have continued to be decremented |
508 ; during simulation, which is the right thing to do... | 514 ; during simulation, which is the right thing to do... |
509 ostc_debug 'H' ; Sends debug-information to screen if debugmode active | 515 ostc_debug 'H' ; Sends debug-information to screen if debugmode active |
510 | 516 |
511 return | 517 return |