.global _periph_init _periph_init: .cproc MVKL 0x01800000, A4 ; EMIF CE1 MVKH 0x01800000, A4 MVKL 0xfff10220, A5 ; Read Setup=1 Strobe=2 Hold=0 (was Hold=1) MVKH 0xfff10220, A5 STW A5, *+A4[1] MVKL 0x01880000, A4 ; Expansion Bus global control register MVKH 0x01880000, A4 * MVK 0x7000, A5 ; Clock = CPU/2 MVK 0x6000, A5 ; Clock = CPU/4 * MVK 0x5000, A5 ; Clock = CPU/6 * MVK 0x4000, A5 ; Clock = CPU/8 STW A5, *A4 MVKL 0x018c0000, A4 ; Serial port channel 0 MVKH 0x018c0000, A4 MVKL 0x000100A0, A5 MVKH 0x000100A0, A5 STW A5, *+A4[3] STW A5, *+A4[4] MVKL 0x20200008, A5 MVKH 0x20200008, A5 STW A5, *+A4[5] MVK 0x00000A02, A5 STW A5, *+A4[9] MVKL 0x00C10001, A5 MVKH 0x00C10001, A5 STW A5, *+A4[2] MVKL 0xdeadbeef, A5 MVKH 0xdeadbeef, A5 STW A5, *+A4[1] ; Send a message to the serial port MVKL 0x01900000, A4 ; Serial port channel 1 (FSX1) MVKH 0x01900000, A4 MVK 0x3800, A5 STW A5, *+A4[9] .return .endproc