# HG changeset patch # User Paul Boddie # Date 1494454308 -7200 # Node ID 99c45884949c711b1ea7474a79dd0b22bd68e3f8 # Parent 2bde94e148b6d41246bf7cb90ca45343e78f5fef Added line address variable (to be used) and adjusted IRQ label names. diff -r 2bde94e148b6 -r 99c45884949c vga.S --- a/vga.S Wed May 10 17:15:25 2017 +0200 +++ b/vga.S Thu May 11 00:11:48 2017 +0200 @@ -142,6 +142,7 @@ li $s0, 0 /* line counter */ la $s1, vfp_active /* current event */ + move $s2, $zero /* line address */ /* Monitoring loop. */ loop: @@ -197,7 +198,7 @@ la $v0, IFS0 lw $v1, 0($v0) andi $v1, $v1, (1 << 9) /* T2IF */ - beqz $v1, irq_next + beqz $v1, irq_pmp nop /* Increment the line counter. */ @@ -217,7 +218,7 @@ li $v1, (1 << 9) /* IFS0<9> = T2IF = 0 */ sw $v1, CLR($v0) -irq_next: +irq_pmp: /* Check for a PMP interrupt condition. */