Bean (Hitt Consulting) said...
The Origin exceeds fit limit means that you have too much code. The PASM code that
PropBASIC generates must fit within the COG. So only 496 instructions are allowed.
Some
PropBASIC commands generate alot of PASM code so you need to put them into a subroutine.
If you look at the template.pbas you will see that near the top of the program you declare the subroutines along with how many parameters they need.
Means you will have a subroutine named "Plot" that takes 2 parameters.
Near the bottom of the template you will see where you put the actual subroutine code.
Code:
SUB Plot
' Parameters are in __PARAM1 and __PARAM2
ENDSUB
If you could post your code we could help you much more.
Another more complecated thing to do is to break the program into multiple TASKs. Each TASK runs in it's own COG, so each TASK can have 496 PASM instructions.
Bean.
Bookmarks