aboutsummaryrefslogtreecommitdiff
path: root/space/src/vectors/nmi.s
diff options
context:
space:
mode:
Diffstat (limited to 'space/src/vectors/nmi.s')
-rw-r--r--space/src/vectors/nmi.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/space/src/vectors/nmi.s b/space/src/vectors/nmi.s
new file mode 100644
index 0000000..4bc3dde
--- /dev/null
+++ b/space/src/vectors/nmi.s
@@ -0,0 +1,14 @@
+;; Non-Maskable Interrupts handler.
+nmi:
+ ;; As mentioned on the `main` subroutine, rendering will be skipped until
+ ;; the proper flag is set.
+ bit $20
+ bpl @next
+
+ ;; We can start rendering stuff.
+ OAM_WRITE_SPRITES
+
+ ;; And unset the render flag so the `main` code is unblocked.
+ UNSET_RENDER_FLAG
+@next:
+ rti