summaryrefslogtreecommitdiffstats
path: root/oncology/dpfhack_display/src/p_start_blue.s
diff options
context:
space:
mode:
authorroot <root@krebs>2011-09-01 02:18:42 +0200
committerroot <root@krebs>2011-09-01 02:18:42 +0200
commitbb2a234ba756eb600fb6f562e67500d511d4ab39 (patch)
treec89b205e3ad2d20e3aa80ca525e0bbf1e01b4670 /oncology/dpfhack_display/src/p_start_blue.s
parent8a6fd84c70618f5a435d2859b513de6de68dc0d1 (diff)
parent4fb37da707279faf92cc8a054c646336f23dfdbe (diff)
Merge branch 'master' of github.com:/krebscode/painload
Conflicts: .gitmodules oncology/dpfhack_display
Diffstat (limited to 'oncology/dpfhack_display/src/p_start_blue.s')
-rw-r--r--oncology/dpfhack_display/src/p_start_blue.s34
1 files changed, 0 insertions, 34 deletions
diff --git a/oncology/dpfhack_display/src/p_start_blue.s b/oncology/dpfhack_display/src/p_start_blue.s
deleted file mode 100644
index 1098c0f1..00000000
--- a/oncology/dpfhack_display/src/p_start_blue.s
+++ /dev/null
@@ -1,34 +0,0 @@
-; Patch for startup (mod41 on DX_blue)
- .include 'dpf.inc'
- .include 'dpf_int.inc'
- .include 'hack.inc'
-
- .area HOME (CODE)
- .area BANK0 (CODE, ABS)
-
- .org 0x1418
- lcall 0x13ac
- orl wdtcon,#0x20
- mov a,i_G_f
- jbc acc.3, usbact ; If this bit is 1, USB is plugged in.
- sjmp continue
-usbact:
- ljmp hack
-
-continue:
- ljmp tramp_return
-
-hack:
- clr ea ; No IRQ
- mov dptr, #(0x196a - 0x800)
- mov a, #cloned_jumptable_offset >> 16
- movx @dptr, a
-
- pop acc ; Fixup stack, as we did a jsr
- pop acc ; ..and a bank jsr
-
- ; Jump into our firmware
- mov a,#(50 - 1)
- mov dptr,#entry_addr
- ljmp tramp_jmp
-