# HG changeset patch # User Paul Boddie # Date 1509747906 -3600 # Node ID 096262322f96a04e840049fef6fec68089620c63 # Parent db8794469a716890d89915a7c0c536902159a2f9 Removed redundant operations such as loads whose values are already loaded. The line channel also does not need disabling and enabling when updating the source address. diff -r db8794469a71 -r 096262322f96 vga.S --- a/vga.S Fri Nov 03 20:31:05 2017 +0100 +++ b/vga.S Fri Nov 03 23:25:06 2017 +0100 @@ -720,7 +720,6 @@ /* Clear the timer interrupt condition. */ - li $v1, (1 << 9) /* IFS0<9> = T2IF = 0 */ sw $v1, CLR($v0) /* @@ -759,7 +758,6 @@ /* Clear the DMA interrupt condition. */ - li $v1, (1 << 29) /* IFS1<29> = DMA1IF = 0 */ sw $v1, CLR($v0) /* Test the block transfer completion interrupt flag. */ @@ -772,7 +770,6 @@ /* Clear the block transfer completion interrupt flag. */ - li $v1, (1 << 3) /* CHBCIF = 0 */ sw $v1, CLR($v0) /* @@ -918,12 +915,6 @@ la $s1, vfp_active - /* Clear the timer interrupt condition. */ - - la $v0, IFS0 - li $v1, (1 << 9) /* IFS0<9> = T2IF = 0 */ - sw $v1, CLR($v0) - /* Re-enable the timer interrupt after the visible period. */ la $v0, IEC0 @@ -983,22 +974,11 @@ _visible_dma_update: - /* Disable line channel. */ - - la $v0, DCH1CON - li $v1, 0b10000000 - sw $v1, CLR($v0) - /* Update the source address. */ la $v0, DCH1SSA sw $s2, 0($v0) - /* Enable line channel. */ - - la $v0, DCH1CON - sw $v1, SET($v0) - _visible_update_ret: j irq_exit nop