English Amiga Board


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

 
 
Thread Tools
Old 25 October 2020, 12:13   #21
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,525
Quote:
Originally Posted by 8bitbubsy View Post
Kinda strange that CNOP 0,512 apparently works in VASM according to ross, then.
AmigaDOS hunk-format is not the only output format vasm supports. There may be other 68k OS with different alignment restrictions. Also, you can assemble your code for a fixed, absolute address. For example
org $70000
will allow you alignments up to 64K.
phx is offline  
Old 25 October 2020, 17:28   #22
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 56
Posts: 2,024
Quote:
Originally Posted by 8bitbubsy View Post
Is this seriously the ONLY way to do it? So I either have to waste 256kB of fastmem, or read the table from a file instead...'

EDIT: Would it be posible to use a combination of REPT N + ds.b N + CNOP 0,8 + ENDR?
Dont better to create this table in program init routine? In BSS or Code_BSS section? Your program will be smaller.
Don_Adan is offline  
Old 28 October 2020, 11:51   #23
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,712
I wanted to lower the time it takes to initialize the program, hence why I INCBIN it instead. Anyway, I don't need it to be aligned to 512 after all, so it works fine now with CNOP 0,2
8bitbubsy 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
cnop phx Coders. Asm / Hardware 13 19 February 2015 21:33
Big Problems in transfering team 17 games ! Vollldo support.Games 29 22 April 2011 13:35
BIG BIG BIG WINUAE CRASH (with .dmp file included) The Rom Alien support.WinUAE 4 31 August 2004 20:26
WinUAE Newbie having big problems please help Fiery251 support.WinUAE 2 10 September 2001 19:35

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 20:32.

Top

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