Search found 202 matches
- Sun Jan 04, 2026 1:44 am
- Forum: Off Topic
- Topic: Can current AI understand PureBasic and....
- Replies: 16
- Views: 2778
Re: Can current AI understand PureBasic and....
I use Gemini with PureBasic and it help me a lot!
- Thu Jan 01, 2026 11:12 am
- Forum: Off Topic
- Topic: HAPPY NEW YEAR!!
- Replies: 21
- Views: 1382
Re: HAPPY NEW YEAR!!
Happy New Year!
- Fri Oct 24, 2025 8:56 pm
- Forum: Tricks 'n' Tips
- Topic: Simple on the fly audio example
- Replies: 11
- Views: 1823
Re: Simple on the fly audio example
Thank you!
- Sun Apr 27, 2025 1:30 pm
- Forum: Coding Questions
- Topic: Convert C code
- Replies: 9
- Views: 1876
Re: Convert C code
You are right!!
I will investigate...
Thank you!
I will investigate...
Thank you!
- Sun Apr 27, 2025 12:25 pm
- Forum: Coding Questions
- Topic: Convert C code
- Replies: 9
- Views: 1876
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 ...
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 ...
- Sat Apr 26, 2025 11:18 pm
- Forum: Coding Questions
- Topic: Convert C code
- Replies: 9
- Views: 1876
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 ...
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 ...
- Sat Apr 26, 2025 8:09 pm
- Forum: Coding Questions
- Topic: Convert C code
- Replies: 9
- Views: 1876
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 ...
#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 ...
- Thu Jan 16, 2025 1:13 am
- Forum: Coding Questions
- Topic: WindowedScreen question
- Replies: 8
- Views: 1018
Re: WindowedScreen question
What help me in my program is repeat the line:
Code: Select all
ShowCursor_(0)
ShowCursor_(0)
- Sat Nov 02, 2024 2:47 pm
- Forum: Tricks 'n' Tips
- Topic: Old Skool Effects & Other Stuff
- Replies: 86
- Views: 21564
Re: Old Skool Effects & Other Stuff
@JHPJHP yes, the new version works fine.
Thanks for sharing!
Thanks for sharing!
- Sat Nov 02, 2024 2:22 pm
- Forum: Tricks 'n' Tips
- Topic: Old Skool Effects & Other Stuff
- Replies: 86
- Views: 21564
Re: Old Skool Effects & Other Stuff
@breeze4me thanks, now works here.
@JHPJHP very nice code!
Thank you!
@JHPJHP very nice code!
Thank you!
- Mon Oct 07, 2024 5:50 pm
- Forum: Off Topic
- Topic: What's your favorite computer game of all time?
- Replies: 50
- Views: 13643
Re: What's your favorite computer game of all time?
-Cobra
-R Type
(ZX Spectrum)
-R Type
(ZX Spectrum)
- Thu Sep 05, 2024 10:29 am
- Forum: Tricks 'n' Tips
- Topic: Direct2D Include [Windows]
- Replies: 23
- Views: 6483
Re: Direct2D Include [Windows]
Thank you for X86 update!
- Wed Apr 17, 2024 9:03 pm
- Forum: Off Topic
- Topic: In what version was the canvas added and in what year?
- Replies: 2
- Views: 2241
- 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: 14278
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
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
- Thu Mar 28, 2024 10:40 pm
- Forum: Announcement
- Topic: PureBasic 6.10 LTS is out !
- Replies: 344
- Views: 132613
Re: PureBasic 6.10 LTS is out !
Thank you!