08 June 2009, 15:47 | #1 |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 829
|
AsmPro sources question(s)
Hi
Some days ago I looked into AsmPro sources ( v 1.17 ) and I find something which I don't understand. At lines 363-364 (ASMPro.s )there is Code:
move.l 4(sp),d0 MOVE.L D0,StackSize As I know when program starts from CLI then I can obtain stack size from pr_StackSize. Maybe there is a bug in ASMPro.s ??? edit: After analyzation of AsmPro.s I think that above sp point to sp obtained at begin of source. I think. Maybe it's kind of trick used in kick1.3 or something. I've no idea. Regards Last edited by Asman; 08 June 2009 at 15:53. Reason: update2 |
08 June 2009, 16:02 | #2 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
Quote:
One bug? Make that "shitloads of bugs"! |
|
08 June 2009, 16:15 | #3 |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 829
|
|
09 June 2009, 11:29 | #4 | |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 829
|
Quote:
I checked this again, with basm debugger and read docs ( AmigaDOSManual.guide ) about initial environment in assembler ( When you load a program under a Shell ) and .... (4,sp) contains size of the stack in bytes. Regards Last edited by Asman; 09 June 2009 at 12:12. Reason: update2 |
|
09 June 2009, 11:47 | #5 | |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Watcha Asman. Hope you're well.
Quote:
|
|
09 June 2009, 12:18 | #6 |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 829
|
Hi pmc,
For clarification. I talking about situation when you load a program under a Shell then (4,sp) contains size of the stack in bytes. I don't know what happen with sp when program started from WB. cheers Last edited by Asman; 09 June 2009 at 12:19. Reason: update2 |
12 June 2009, 23:45 | #7 |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 876
|
there are more values (registers/stack) which have defined values when started from cli, most of them are required to run bcpl programs. also some compilers use them for their startup code (e.g. manx).
you can find infos in the guru book from ralph babel about this. |
03 September 2010, 11:24 | #8 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
|
03 September 2010, 11:35 | #9 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Sting will only recommend AsmOne and AsmPro cos he knows what all the bugs are and how to work round them and loves the software.
I also think they're excellent in that they have very useful functions - especially for writing binaries and writing to disk etc. but I prefer Devpac for the actual assembling of my code. I write the code in Ultraedit on PC though - can't be using Amiga assembler's editors now that I'm used to a more modern text editor I'm afraid. |
03 September 2010, 11:48 | #10 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
@pmc
Yeah, I am just having a look at Devpac myself. It is probably worth me pointing out that I know sod all assembler. The last time I looked at any was back at university - we had a 68k module on the course and a lab full of Atari ST1040s to code on. That was far too many years ago though. Please Note: I may ask some really stupid/obvious questions. You have been warned. |
03 September 2010, 11:50 | #11 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
No worries man - there are no stupid questions.
The coding forums are here, so ask away. |
03 September 2010, 11:57 | #12 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
As PMC said, I'd recommend AsmOne/Pro since despite the bugs it's a very convenient package. Also, for a beginner it is perfect (IMHO of course) since it is very easy and fast to use. And it handles the "simple" things quite well, i.e. you'll only experience bugs when you start more complex stuff.
|
03 September 2010, 12:05 | #13 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
@StingRay
Any input from you more experienced coders is welcome. On a sort of slightly connected note, I wonder if one of you can point me in the right direction here. I am running my stuff on a WinUAE emulated A1200 and everything seems to be ok except that the keyboard mappings are a bit off. I don't know if this is a problem with WinUAE, the setup of the A1200 or specific to AsmPro but it's a bit annoying pressing the ' # ' key and getting the ' | ' symbol. If there is a proper thread for this then I apologise in advance - I'll quite happily move this if you can tell me where it should go. |
03 September 2010, 12:21 | #14 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
I'm no Workbench expert but can't this be sorted with some kind of software keyboard map in the startup sequence or something...? Setmap is it...?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple way to display a pic with Asmpro ? | Foul | Coders. Asm / Hardware | 13 | 21 November 2018 09:18 |
ASMPro info bar thingy | bodhi | Coders. Asm / Hardware | 3 | 29 July 2013 10:43 |
AsmPro | copse | Coders. Asm / Hardware | 4 | 25 April 2012 11:41 |
AsmPro | CmdrVimes | Coders. General | 5 | 01 September 2010 12:40 |
Why nobody continue Asmone/AsmPro development ? | kamelito | Amiga scene | 16 | 25 March 2007 15:08 |
|
|