TITLE "mp4test1.a by Douglas Jones, Oct 26, 2014" ; main program to test MP4, passing it a display area ; this particular version of the test program ; is minimal, it cheats by passing video ram directly ; to mp4 as the display area -- as a result, execution ; of code for mp3 and mp4 with this test program should ; give identical results. This test program is not ; the official test, however, but it should be useful ; for debugging USE "hawk.h" USE "monitor.h" INT MAIN S MAIN EXT FILL ; subroutine to solve mp4 VIDEORAM= #FF000100 ; activation record for main ;RETAD = 0 ARSIZE = 4 MAIN: ; given: R3 = w ; R4 = h STORES R1,R2 MOVE R5,R4 ; -- parameter 3, h MOVE R4,R3 ; -- parameter 2, w LIW R3,VIDEORAM ; -- parameter 1, array ADDI R2,R2,ARSIZE LIL R1,FILL JSRS R1,R1 ; fill( b, w, h ) ADDI R2,R2,-ARSIZE LOADS R1,R2 JUMPS R1 ; return END