Hello guys,
I'm trying to use the START_V2.A66 file in an assembler project. But it doesn't work for now. Here is my question: Do anybody know how to use this file in an assembler project? Or what I need to change inside the file, so that it works?
I'll be happy about any useful answer...
Thx
BK
"it doesn't work for now"
How can you hope to even begin solving the problem if you can't even begin to describe what the problem actually is!
In what way(s), precisely, does it "not work"?
For starters are you including the startup file in your project within the compiler? Read the documentation on how to get started. They should have explained how to create your own project, including how to integrate the file to your project.
It's really a beginners problem. But there are only descriptions available for C-Projects. I want to create an assembler project. For example: I got a file named test.a66, that file contains all my assembler actions. And I got the START_V2.A66 file. So how do i combine these two files, that they work together? The START_V2.A66 jumps normally after all initialisation and setup actions into a main() function. This main function doesn't even exist in my test.a66. So an error is thrown... Could you give me an example, how it should look like for both files? Maybe it's right to easy for you...
Then you need to create the main procedure in your assembler file. For example...
$NOMACRO $SEGMENTED CASE MODV2 $MODINF (43) NAME HELLO NCODE CGROUP ?PR?HELLO ASSUME DPP1 : NCONST ASSUME DPP3 : SYSTEM REGDEF R0 - R15 ?PR?HELLO SECTION CODE WORD 'NCODE' main PROC NEAR GLOBAL main ?C0001: JMP cc_UC,?C0001 main ENDP ?PR?HELLO ENDS END
WOOOOOOOOW!!! Thanks that works... Can you explain me what you are doing there, please? I'm new to this. Some small comments after each code line would be helpful. Thanks. Have a nice day... Cya
One more question...What does the questionmark stand for? In my last assembler project I declared all labels without this symbol. For example: Instead of ?C0001: I would have used C0001: Thanks for any reply. Have a nice time. bye
The question marks are part of the C166 Compiler's naming convention:
http://www.keil.com/support/man/docs/c166/c166_ap_sgc.htm
As you're not using 'C', there is no need to stick to any Compiler's naming convention...
Thanks to all of you!! :) Works very well for me now. You helped me a lot. Have a nice time.