Some Help

2007-01-19 Thread Andrew Park
Hi, I was messing about with comet assembler recently and tried a simple routine to display some data on the screen one worked a treat the other killed my routine but they should have both done exactly the same. The difference was on the first routine i done all the paging etc, then displayed m

Re: Some Help

2007-01-19 Thread Colin Piggot
Hi Andy, > Could be a simple solution such as an incorrect stack but it's > confusing me as when I save the SP do the above then restore > the SP it works then resets. Looks like that from just a quick glance at chk2... You aren't doing anything to preserve the stack, or create a new one. When y

RE: Some Help

2007-01-19 Thread Adrian Brown
From what it looks like, you need to store the stack before you switch out the lower pages. You need to store the current stack pointer at the start of your program, setup a new stack in the higher pages (the default will be in the lower), just before you exit restore the stack. Ive attached a new

RE: Some Help

2007-01-19 Thread Adrian Brown
Damn slow mail server - he beat me to it ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Colin Piggot Sent: 19 January 2007 12:31 To: sam-users@nvg.ntnu.no Subject: Re: Some Help Hi Andy, > Could be a simple solution such as an incorrect stack but it

Thanks

2007-01-19 Thread Andrew Park
Thanks Colin & Adrian for helping me out, I realized I had forgotten to make a new stack and when I did this I then pointed my pointer to the beginning of the new stack and not at the end minus 2 bytes. Andy