| |||||
Technical Support Support Resources
Product Information | CX51: PHILIPS MX STARTUP MODIFICATION GENERATES STRANGE CODEInformation in this article applies to:
QUESTIONI'm working on a project using Philips MX and a small modification is required in the startup_mx.a51 file. I need to add a simple NOP and RETI instructions at interrupt vector 0Bh, and I'm implementing this as follows.:
CSEG AT 0
?C_STARTUP: LJMP STARTUP1
CSEG AT 0BH ; start of user's code
NOP
RETI ; end of user's code
RSEG ?C_C51STARTUP
STARTUP1:
; Init MXCON
I inserted only 3 lines of code. My memory is defined as follows.: EDATA (0x7F0000-0x7F03FF), ECODE (0x800000-0x80FFFF), HCONST (0x800000-0x80FFFF)) When I start debugging my application I don't see a LJMP at address 0x800000 ( MX starting address ) and my instructions are placed in the wrong place. Is there any option or any detail that I might be missing? CAUSEYou are following the correct procedures to implement your idea. It's a problem in the tools. RESOLUTIONThis is corrected in C51 V7.0. SEE ALSOLast Reviewed: Thursday, May 19, 2005 | ||||
| |||||