From 34b316c0137176d138de680f14675b04cff295bc Mon Sep 17 00:00:00 2001 From: ceb Date: Mon, 1 Nov 2004 20:27:23 +0000 Subject: [PATCH] attempt to add locations for interruipts via assembler org instruction (see gopasm manual) --- cebpic/Makefile | 2 +- cebpic/reply-serial.asm | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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 -- 2.30.2