From: ceb Date: Mon, 1 Nov 2004 20:27:23 +0000 (+0000) Subject: attempt to add locations for interruipts via assembler org instruction X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=34b316c0137176d138de680f14675b04cff295bc;p=trains.git attempt to add locations for interruipts via assembler org instruction (see gopasm manual) --- diff --git a/cebpic/Makefile b/cebpic/Makefile index 6392bed..b6d95fd 100644 --- a/cebpic/Makefile +++ b/cebpic/Makefile @@ -1,4 +1,4 @@ -TARGETS= led-flash.hex send-serial.hex +TARGETS= led-flash.hex send-serial.hex reply-serial.hex include ../pic.make diff --git a/cebpic/reply-serial.asm b/cebpic/reply-serial.asm index ed567eb..199acdb 100644 --- a/cebpic/reply-serial.asm +++ b/cebpic/reply-serial.asm @@ -2,16 +2,17 @@ include /usr/share/gputils/header/p18f458.inc - code - + org 0 goto initialise_serial - ; interrupt routine call - this needs to be at 000018h (low priority interrupt) + org 000018h goto interrupt_check + code + initialise_serial ; initial config - TXSTA register p181