# HG changeset patch # User Paul Boddie # Date 1510061913 -3600 # Node ID 7d1685074d4c00e8723858a9c0baab785c7c6cfb # Parent 83ebe9cd031429a88368d86a8d1c79becfcd4505 Reordered channel and timer activation instructions, tidied generally. diff -r 83ebe9cd0314 -r 7d1685074d4c vga.S --- a/vga.S Tue Nov 07 14:04:29 2017 +0100 +++ b/vga.S Tue Nov 07 14:38:33 2017 +0100 @@ -623,8 +623,6 @@ la $v0, IPC10 li $v1, 0b1111100011111 /* DMA1IP, DMA1IS, DMA0IP, DMA0IS = 0 */ sw $v1, CLR($v0) - - la $v0, IPC10 li $v1, 0b1111100011111 /* DMA1IP, DMA0IP = 7, DMA1IS, DMA0IS = 3 */ sw $v1, SET($v0) @@ -930,12 +928,6 @@ la $v0, DCH1SSA sw $s2, 0($v0) - /* Enable the start channel for timer event transfer initiation. */ - - la $v0, DCH0ECON - li $v1, (1 << 4) /* DCH0ECON<4> = SIRQEN = 1 */ - sw $v1, SET($v0) - /* Suspend delivery of the timer interrupt during the visible period. The condition still occurs, however. @@ -955,6 +947,12 @@ li $v1, (1 << 9) sw $v1, SET($v0) /* T2IE = 0 */ + /* Enable the start channel for timer event transfer initiation. */ + + la $v0, DCH0ECON + li $v1, (1 << 4) /* DCH0ECON<4> = SIRQEN = 1 */ + sw $v1, SET($v0) + _vbp_active_ret: jr $ra nop