06 September 2018, 17:01 | #1 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
Adding data to proper SECTION make strange behaviour...
I know it sounds silly, but.. I have a simple scrolling text with 3 bitplanes (standard, no interleaved).
Everything works OK until I add a module (MT_DATA) on the proper SECTION (see below) Code:
SECTION Data,DATA_C FONT: incdir "dh1:own/demo/repository/resources/fonts/" incbin "32x32-FL.raw" ; added module MT_DATA: incdir "dh1:resources/mod/" incbin "mod.song" When I launch the assembly command everything is ok, but when I launch the demo, the FONT is displayed with less bitplane.. I've attached two examples, one as it should be and one which is the screwed. I'm going mad, anyone experienced something similar ??? I'm using AsmOne with FS-UAE |
06 September 2018, 17:39 | #2 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
If you upload somewhere the two executables i'll take a look.
|
06 September 2018, 18:10 | #3 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
https://github.com/fstarred/amiga_pl.../demo/2/demo.s
Try to assemble both with binary under MT_DATA and without. Then launch the demo on A500 with KS1.3 and see the results |
06 September 2018, 18:28 | #4 | |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 1,959
|
Quote:
|
|
06 September 2018, 18:34 | #5 |
Registered User
Join Date: Oct 2015
Location: France
Posts: 82
|
maybe you need your data to be word aligned somewhere in you section? (using 'even').
|
06 September 2018, 18:36 | #6 |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 1,959
|
Perhaps the easiest way to psedo fix is exchanging place for both incbins. First mod, second fonts.
|
06 September 2018, 18:37 | #7 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,409
|
I wonder if this is fixed if you change the Screen section to a non-BSS one.
If I recall correctly, BSS sections are not correctly supported by Amiga OS 1.3. Though you would expect that lead to trouble with data on the screen buffer and not really with the FONT data. Last edited by roondar; 06 September 2018 at 18:43. |
06 September 2018, 19:09 | #8 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
There is a bug in code
Hint: adding words is not always good |
06 September 2018, 19:17 | #9 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
Ross do you mean about EVEN keyword after TEXT? Uhm I'm very curious now!
|
06 September 2018, 19:22 | #10 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
06 September 2018, 19:34 | #11 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Quote:
Think about what differs between sum a word value on Dx and Ax registers. However it's a pretty sneaky mistake and manifests itself, rightly, if you 'move' the data in memory. (scusa, dovrei dirtelo subito, mi sento un po' ..) |
|
06 September 2018, 19:37 | #12 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
Gosh this is not my first time on this kind of error.. Unfortunately right now I can't try because I'm on on a PC however.. challenge accepted!
(Figurati anzi che ti sei preso il disturbo di darci un occhiata) |
06 September 2018, 21:20 | #13 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
|
06 September 2018, 22:09 | #14 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
07 September 2018, 00:02 | #15 | ||
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,409
|
Quote:
Quote:
|
||
07 September 2018, 07:40 | #16 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
It is "code_bss" and "data_bss", i.e. code or data sections with empty region at the end, that require V37+.
|
07 September 2018, 11:55 | #17 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
BSS space after code and data has been supported since 1.2 and will be uninitialized. On 2.0 and later it will be zero-filled.
|
08 September 2018, 11:01 | #18 |
Registered User
Join Date: Jan 2016
Location: NL
Posts: 32
|
I see you have two chipdata-sections:
Code:
... SECTION GRAPHIC,DATA_C ... SECTION Data,DATA_C ... This ofcourse is not wrong, but I think it's safe to remove the second one. |
08 September 2018, 11:20 | #19 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Doesn't hurt at all. As long as there are no PC-relative references between those sections (which you rarely have in data).
It even makes it more likely to be able to load the executable in a heavily fragmented low-memory situation. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
vasm strange behaviour | Den | Coders. Asm / Hardware | 3 | 12 December 2015 15:24 |
Strange behaviour with hotkeys | brolly | support.WinUAE | 2 | 17 August 2013 01:33 |
Strange guru behaviour! | deejaya | support.Other | 11 | 31 January 2009 21:01 |
strange sound behaviour in 0.8.27 | Domenico | support.WinUAE | 8 | 13 October 2006 11:24 |
Strange A1200 behaviour | manicx | support.Hardware | 39 | 09 November 2005 08:32 |
|
|