Subject:
|
Re: Software questions
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Fri, 3 Oct 1997 23:35:14 GMT
|
Original-From:
|
Max Davies <MDAVIES@CAMavoidspam.ORG>
|
Viewed:
|
1526 times
|
| |
| |
Darkman wrote:
> I'm just starting to program the handy board,
> and I have the following questions:
>
> 1) Does MAIN_START EQU to 8020 hex?
> and if this is true what exactly happens if you load multiple
> .icb files? they all seem to have the same starting addres?
> 2) Will this not overwrite the prev loaded icb file?
>
> 3) Does the Pcode_hb mini os take care of this problem automatically?
>
> Any info will be greately appreciated.
>
> Thanks
If you're just starting you're probably better off using 'C' until you
get the feel of things before diving into assembler.
But if you must, to properly write assembler routines for the handy
board they should all start with ORG MAIN_START, where MAIN_START is a
defined symbol setup by the special script that handles your
assemblies. No, they will not overwrite each other as the loader
process performs the required relocations.
For instance...
echo off
REM Two different as11 runs...
REM zero page increases by 3
REM main high byte increases by 7
REM main low byte increases by 11
REM copy to 'C' filename for GCC
copy %1.asm xxxjunk.c
gcc -E -traditional -DZERO_PAGE_START=$10 -DMAIN_START=$8020 -o
ascpp1.asm xxxjunk.c
gcc -E -traditional -DZERO_PAGE_START=$13 -DMAIN_START=$872B -o
ascpp2.asm xxxjunk.c
REM use this one for a listing
REM as11 ascpp1.asm - l s >listing.txt
REM use this one for no listing
as11 ascpp1.asm
as11 ascpp2.asm - cre > ascpp.cre
REM concantenate these files together
copy ascpp1.s19+ascpp2.s19+ascpp.cre %1.icb
REM get rid of temp files
del ascpp1.asm
del ascpp1.s19
del ascpp2.asm
del ascpp2.s19
del ascpp.cre
del xxxjunk.c
REM strip carriage returns from the new icb file
strip_cr %1.icb
|
|
Message is in Reply To:
| | Software questions
|
| I'm just starting to program the handy board, and I have the following questions: 1) Does MAIN_START EQU to 8020 hex? and if this is true what exactly happens if you load multiple .icb files? they all seem to have the same starting addres? 2) Will (...) (27 years ago, 3-Oct-97, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|