English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 23 March 2022, 20:16   #1
MrGuppy
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?
MrGuppy is offline  
Old 24 March 2022, 01:26   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,502
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?
phx is offline  
Old 24 March 2022, 08:17   #3
britelite
Registered User
 
Join Date: Feb 2010
Location: Espoo / Finland
Posts: 818
Just to make sure, do you assemble the source right before using "wo" (without running the program)?
britelite is offline  
Old 24 March 2022, 20:24   #4
MrGuppy
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
MrGuppy is offline  
Old 24 March 2022, 22:08   #5
MrGuppy
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?
MrGuppy is offline  
Old 24 March 2022, 23:58   #6
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
Use a CIA timer... this is independent of CPU clock speed.

There should be some examples in the coder forum here somewhere
DanScott is offline  
Old 26 March 2022, 20:07   #7
MrGuppy
Registered User
 
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
Ok, thanks for the tip!
MrGuppy is offline  
Old 26 March 2022, 21:08   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,528
Quote:
Originally Posted by MrGuppy View Post
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?
Code in chip ram vs code in ACA500plus fast RAM?
Toni Wilen is online now  
Old 27 March 2022, 21:20   #9
MrGuppy
Registered User
 
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
In chip ram.
MrGuppy is offline  
Old 27 March 2022, 22:49   #10
a/b
Registered User
 
Join Date: Jun 2016
Location: europe
Posts: 1,039
Quote:
Originally Posted by MrGuppy View Post
move.w #$20,$dff01e
$01e is a read-only register, use $09c instead.
a/b is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:48.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08936 seconds with 15 queries