Search found 113 matches

by thorsten.otto
Tue Apr 21, 2020 12:19 pm
Forum: GAME ZONE
Topic: WIP Atari ST ScummVM-lite
Replies: 232
Views: 133931

Re: WIP Atari ST ScummVM-lite

OK, weird... When I try to look at the flags using the CPX I usually use all the flag options are greyed out. I would bet that is either because you are running a system that does not support Alt-Ram (unlikely since it is supported since tos 1.04 or so), or you just don't have Alt-RAM installed. I ...
by thorsten.otto
Tue Apr 21, 2020 10:54 am
Forum: GAME ZONE
Topic: WIP Atari ST ScummVM-lite
Replies: 232
Views: 133931

Re: WIP Atari ST ScummVM-lite

agranlund wrote: Tue Apr 21, 2020 10:15 am All three flags are set here (fast-load, run-from & allocate-from)
That should be the default both for Pure-C and gcc. What compiler are you using?
by thorsten.otto
Sat Apr 18, 2020 7:41 am
Forum: SOFTWARE PROGRAMMING & DISCUSSION
Topic: rsrc_gaddr read back selected tree ?
Replies: 4
Views: 2941

Re: rsrc_gaddr read back selected tree ?

But you are passing the address of the tree to objc_find(), so you certainly know which tree the button belongs to? There is no need to handle cases for any other object tree.
by thorsten.otto
Fri Apr 17, 2020 12:05 pm
Forum: SOFTWARE PROGRAMMING & DISCUSSION
Topic: rsrc_gaddr read back selected tree ?
Replies: 4
Views: 2941

Re: rsrc_gaddr read back selected tree ?

First off, i wonder why you need to do that? The tree number is usually only needed for rsrc_gaddr(), after that you just use the returned OBJECT tree pointer. And no, there is no direct way to read the number back. You could loop over all the tree numbers in your resource, calling rsrc_gaddr() on t...
by thorsten.otto
Thu Apr 16, 2020 4:29 pm
Forum: SOFTWARE PROGRAMMING & DISCUSSION
Topic: Storing screen data in ASM code ?
Replies: 3
Views: 2714

Re: Storing screen data in ASM code ?

Oh, almost forgot, there is also a nice tutorial made by Vincent,
by thorsten.otto
Thu Apr 16, 2020 3:56 pm
Forum: SOFTWARE PROGRAMMING & DISCUSSION
Topic: Getting screen base address ?
Replies: 4
Views: 3352

Re: Getting screen base address ?

_v_bas_ad is the *logical* address, the same that you get by calling Logbase() . It's the one that is used by all VDI drawing operations, as well as by Line-A. I would prefer using Physbase(), unless you are really short on cycles. Using the hardware addresses may not work with graphics cards (well,...
by thorsten.otto
Thu Apr 16, 2020 3:47 pm
Forum: SOFTWARE PROGRAMMING & DISCUSSION
Topic: Storing screen data in ASM code ?
Replies: 3
Views: 2714

Re: Storing screen data in ASM code ?

Most assemblers have an INCBIN directive or similar. With this, you can include any binary file into the executable. From there, just copy it to screen.

Alternatively, you can write a simple tool that spits out "dc.b" directives, and include that.
by thorsten.otto
Wed Apr 15, 2020 3:46 pm
Forum: SOFTWARE PROGRAMMING & DISCUSSION
Topic: Disabling interrupts
Replies: 6
Views: 4089

Re: Disabling interrupts

I don't know hisoft basic, but i would be surprised if you have access to the SR register there. And the interrupt routines that are installed there must be written in asm, anyway, since they must return with rte, and must not change any registers.
by thorsten.otto
Wed Apr 15, 2020 3:37 pm
Forum: SOFTWARE PROGRAMMING & DISCUSSION
Topic: Disabling interrupts
Replies: 6
Views: 4089

Re: Disabling interrupts

sys_sleep: lea sys_state(pc),a0 move.w sr,d0 <-- save old value ori.w #$0700,sr move.l $70.w,(a0)+ move.l $114.w,(a0)+ lea new_vbi(pc),a1 move.l a1,$70.w lea new_tc(pc),a1 move.l a1,timerc.w move.w d0,sr <-- restore old interrupt mask rts That's all i suggested to change.
by thorsten.otto
Wed Apr 15, 2020 1:16 pm
Forum: SOFTWARE PROGRAMMING & DISCUSSION
Topic: Installing _FRB cookie ?
Replies: 1
Views: 1959

Re: Installing _FRB cookie ?

The function is available when the cookie 'CJar' ($434A6172) is present. This is created by JARxxx (Cookie Jar Manager) or by Liberty. So that function is not a standard XBIOS function, but only available if you ran that cookie jar manager. And you can detect its presence only by looking at the coo...

Go to advanced search