23 March 2022, 20:16 | #1 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
ASM-One Build ".exe" with command "wo"
Hi,
Have a problem with ASM-One when I'm trying to compile my project to make it executable(.exe). Using the command "wo" in the compiler. It manage to make a working executable but the problem is the time delays in my code, they doesn't seem to work properly any more. No they're to fast, nut much for delays any more? Is "wo" the right command to use? |
24 March 2022, 01:26 | #2 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,537
|
Which time delays? Calling dos.library Delay()? Using the timer.device? Programming the CIA-timers directly? Doing a busy-loop?
Are you saying that the generated executable runs differently compared to the code running inside the Asm-One IDE? On the same machine? |
24 March 2022, 08:17 | #3 |
Registered User
Join Date: Feb 2010
Location: Espoo / Finland
Posts: 820
|
Just to make sure, do you assemble the source right before using "wo" (without running the program)?
|
24 March 2022, 20:24 | #4 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
Yes, I assemble it before using "wo".
Using a time delay in the asm-code like below, I'm not sure what's standard and the best. wait: btst #5,$dff01f beq.s wait move.w #$20,$dff01e addq.w #1,d0 cmp.w #3000,d0 ; Tiden beq.s stop btst #6,$bfe001 bne.s wait |
24 March 2022, 22:08 | #5 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
Sorry, my own fault.
Have an ACA 500 plus accelerator running on 42Mhz, ofcourse the time delays will be faster. Put it down to 7Mhz(original speed), then the time delays was behaving normaly. Anyone know how to come around this? Anyway, strange that the time delay seems to work in ASM-One when just compiling it and running it from there, even if the CPU is 42Mhz? |
24 March 2022, 23:58 | #6 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,213
|
Use a CIA timer... this is independent of CPU clock speed.
There should be some examples in the coder forum here somewhere |
26 March 2022, 20:07 | #7 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
Ok, thanks for the tip!
|
26 March 2022, 21:08 | #8 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
|
27 March 2022, 21:20 | #9 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
In chip ram.
|
27 March 2022, 22:49 | #10 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,053
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Diabolik" & "Dylan Dog" & "Tex" & "Time Runners" series | DamienD | request.Old Rare Games | 20 | 21 July 2022 16:58 |
"Voices8" 8 Channel Soundtracker "DemoSongI" song - "This is the Amiga with 8 Voices" | DemosongIHunter | request.Music | 45 | 23 May 2022 20:07 |
"Screech!! v2.41" & "Screech!! [AGA] v2.51" - "HD install" --> "ADFs" | DamienD | request.Old Rare Games | 45 | 15 June 2020 12:42 |
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" | rockape | News | 4 | 30 January 2013 00:06 |
CD32 Image-Name-Bug: "...(bla)[!].zip" -> "...(bla)[" / "...[test].zip" -> "...[tes" | cfTrio | support.WinUAE | 8 | 18 December 2012 16:31 |
|
|