Search found 200 matches

by Otrebor
Fri Oct 24, 2025 8:56 pm
Forum: Tricks 'n' Tips
Topic: Simple on the fly audio example
Replies: 11
Views: 1268

Re: Simple on the fly audio example

Thank you!
by Otrebor
Sun Apr 27, 2025 1:30 pm
Forum: Coding Questions
Topic: Convert C code
Replies: 9
Views: 1790

Re: Convert C code

You are right!!
I will investigate...

Thank you!
by Otrebor
Sun Apr 27, 2025 12:25 pm
Forum: Coding Questions
Topic: Convert C code
Replies: 9
Views: 1790

Re: Convert C code

Hi


my definitions
Global pc.u, pc_.u, sp.u, mp.u, t.u, u.u, ff.u, ff_.u, fa.u, fa_.u, fb.u, fb_.u, fr.u, fr_.u

Macro ADC(b)
TstatesDelay(pc-1)
addst(4)
fa=a
fb=b
ff=(ff>>8&1)+fa+fb
a=ff
fr=a
_f3Updated = #True
EndMacro

Macro z80()
Select RByte((pc-1)&$FFFF) ; RByte = read byte ...
by Otrebor
Sat Apr 26, 2025 11:18 pm
Forum: Coding Questions
Topic: Convert C code
Replies: 9
Views: 1790

Re: Convert C code

infratec, thank you. Unfortunately stil fail...

Hm... maybe you need an additional brace, C has party a different order fr executing.


Yes , the order of executing (operators priorities) cause me a lot the problem while converting this code years ago:

https://github.com/antoniovillena/ticks ...
by Otrebor
Sat Apr 26, 2025 8:09 pm
Forum: Coding Questions
Topic: Convert C code
Replies: 9
Views: 1790

Convert C code

I need to convert 2 lines of C code
#1

fr= a= (ff= (fa= a)+(fb= b)+(ff>>8&1)) ; //C code

fa=a
fb=b
ff=(ff>>8&1)+fa+fb
a=ff
fr=a


#2

fr= a= (ff= (fa= a)+(fb= ~b)+(ff>>8&1^1)) ;// C code

fb=~b
fa=a
ff=fa+fb+((ff>>8&1)!1)
a=ff
fr=a


The 2 lines above are part of Z80 instructions ...
by Otrebor
Thu Jan 16, 2025 1:13 am
Forum: Coding Questions
Topic: WindowedScreen question
Replies: 8
Views: 911

Re: WindowedScreen question

What help me in my program is repeat the line:

Code: Select all

      ShowCursor_(0)
      ShowCursor_(0)
by Otrebor
Sat Nov 02, 2024 2:47 pm
Forum: Tricks 'n' Tips
Topic: Old Skool Effects & Other Stuff
Replies: 86
Views: 20270

Re: Old Skool Effects & Other Stuff

@JHPJHP yes, the new version works fine.
Thanks for sharing!
by Otrebor
Sat Nov 02, 2024 2:22 pm
Forum: Tricks 'n' Tips
Topic: Old Skool Effects & Other Stuff
Replies: 86
Views: 20270

Re: Old Skool Effects & Other Stuff

@breeze4me thanks, now works here.

@JHPJHP very nice code!
Thank you!
by Otrebor
Mon Oct 07, 2024 5:50 pm
Forum: Off Topic
Topic: What's your favorite computer game of all time?
Replies: 50
Views: 12552

Re: What's your favorite computer game of all time?

-Cobra
-R Type
(ZX Spectrum)
by Otrebor
Thu Sep 05, 2024 10:29 am
Forum: Tricks 'n' Tips
Topic: Direct2D Include [Windows]
Replies: 23
Views: 6121

Re: Direct2D Include [Windows]

Thank you for X86 update!
by Otrebor
Sun Apr 14, 2024 4:39 pm
Forum: General Discussion
Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
Replies: 29
Views: 13881

Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04

Not use UPX for years, but did a test.

VirusTotal results:

PB 6.0 (x86)
without UPX: 4/70
with UPX: 8/70


PB 6.1 (x86)
without UPX: 6/70
with UPX: 11/70
by Otrebor
Thu Mar 28, 2024 10:40 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 344
Views: 125392

Re: PureBasic 6.10 LTS is out !

Thank you!
by Otrebor
Sat Mar 23, 2024 4:53 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 344
Views: 125392

Re: PureBasic 6.10 beta 9 is out !

PB 6.0 x86 C optimized : 3270
PB 6.1 B9 x86 C optimized : 3420

My emulator at full speed with PB 6.0 runs about +20 frames/sec compared with PB 6.1
by Otrebor
Sat Mar 23, 2024 12:04 am
Forum: Coding Questions
Topic: [6.10 b1] OpenLibrary() problem
Replies: 11
Views: 2807

Re: [6.10 b1] OpenLibrary() problem

Hi
Just to report that with beta 9 OpenLibrary() works again with wd1793.dll (both files).
The initial problem with beta 1 was solved.