Search found 7430 matches

by D.J.Peters
Oct 16, 2019 13:52
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

In original BASIC the FOR counter var was a local or global var and accessible inside of the loop. In the early days no EXIT FOR command exists. 10 FOR I% = 0 to 15 STEP 2 20 IF (I% AND 4) THEN GOTO 40 REM a kind of 'CONTINUE' 30 IF (I% = 6) THEN I% = 15 REM a kind of 'EXIT FOR' 40 NEXT I% Looks lik...
by D.J.Peters
Oct 16, 2019 7:36
Forum: Community Discussion
Topic: [offtopic] retro computing VASM
Replies: 9
Views: 457

Re: [offtopic] retro computing VASM

AVR = ATMEL now MICROCHIP has nothing to do with retro computing ;-)

Joshy
by D.J.Peters
Oct 15, 2019 12:04
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3401

Re: TP-Link HS110

If you receive data over TCP often you don't know it's size (including any header stuff). On hardware level some devices works faster with large data chunks of 32K blocks others with 8K ! With other words the device knows if any data but not it's size ! declare function CanGet() as integer O...
by D.J.Peters
Oct 11, 2019 11:56
Forum: Community Discussion
Topic: [offtopic] retro computing VASM
Replies: 9
Views: 457

Re: [offtopic] retro computing VASM

The MOTOROLA 6803 emulator execute the TSR-80 MC-10 BASIC ROM, simple video output and keyboard input. The MOS 6510 emulator executes the C64 BASIC ROM, simple video output and keyboard input. The ZILOG Z80 emulator executes the Martell Aquarius BASIC ROM simple video output and keyboard input. No s...
by D.J.Peters
Oct 11, 2019 2:10
Forum: Community Discussion
Topic: [offtopic] retro computing VASM
Replies: 9
Views: 457

[offtopic] retro computing VASM

Last 2 month I enjoy my new "old" retro hobby :-) First I wrote an 65xx 680x and Z80 disassembler,assembler and emulator in FreeBASIC. But with my Z80 emulator I run in to an strange problem and after more then 50,000 debugging steps I don't found the source of trouble. (May be I set wrong...
by D.J.Peters
Oct 08, 2019 20:38
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 791
Views: 133214

Re: FBGUI library for Windows 2

@RNBW good job so far.
I know how many work it was.

Joshy
by D.J.Peters
Oct 08, 2019 20:26
Forum: Community Discussion
Topic: retro-basic
Replies: 8
Views: 452

Re: retro-basic

In scope of "RETRO" BASIC the "free" QBASIC version shipped with DOS was an slow BASIC interpreter. On a 80386SL 20 MHz PSET() was one of the slowest command at all. The trick was to use DEF SEG instead of the missing pointer arithmetic. SCR% = SCR% + 20 moved the "pixel poi...
by D.J.Peters
Oct 08, 2019 14:47
Forum: Community Discussion
Topic: retro-basic
Replies: 8
Views: 452

Re: retro-basic

In the early 90th if I saw an idle PC with QBASIC, in any shopping mall I typed and execute one simple line of BASIC It was fun to see how some peoples react. Joshy SCREEN 13: SCR% = &HA000: FOR Y% = 0 TO 199: DEF SEG = SCR%: FOR x% = 0 TO 319: POKE x%, x% AND 127 * Y% AND 127: NEXT: SCR% = SCR%...
by D.J.Peters
Oct 06, 2019 1:55
Forum: Beginners
Topic: 3 text heights without #include
Replies: 5
Views: 283

Re: 3 text heights without #include

"All roads lead to Rome" but some are shorter as the others :-) Sorry if this code does not meets your needs ! It's only for fun. Joshy type FBFont as long w,h as ubyte ptr b end type extern GFXFonts(2) alias "__fb_font" as FBFont enum : FONT_8, FONT_14, FONT_16 : end enum sub In...
by D.J.Peters
Oct 05, 2019 18:22
Forum: General
Topic: String Sort problem
Replies: 24
Views: 559

Re: String Sort problem

Why not using the FreeBASIC JSON library ?

viewtopic.php?f=8&t=24206

Joshy
by D.J.Peters
Oct 01, 2019 1:51
Forum: Windows
Topic: The macro DEFINE_GUID Is missing or renamed ?
Replies: 4
Views: 267

Re: The macro DEFINE_GUID Is missing or renamed ?

@badidea again thank you

Joshy
by D.J.Peters
Sep 30, 2019 20:15
Forum: Windows
Topic: The macro DEFINE_GUID Is missing or renamed ?
Replies: 4
Views: 267

Re: The macro DEFINE_GUID Is missing or renamed ?

Thank you I know how to define a GUID but looks like since any update the include files changed !

Joshy
by D.J.Peters
Sep 30, 2019 19:31
Forum: Windows
Topic: The macro DEFINE_GUID Is missing or renamed ?
Replies: 4
Views: 267

The macro DEFINE_GUID Is missing or renamed ?

If I recompile my older USB enumeration code I get DEFINE_GUIDE isn't defined ! Is it renamed or removed ? I searched with the help of geny in all windows include files but without success. Joshy #define WIN_INCLUDEALL #include once "windows.bi" #include once "win/winioctl.bi" #i...
by D.J.Peters
Sep 22, 2019 10:26
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3401

Re: TP-Link HS110

Funny you will do low level hardware I/O but you don't know the difference of @ vs strptr() ;-) connection->PutData( @cmdStr, len(cmdStr) ) Is wrong you don't send the chars of the string you send the string descriptor ! it must be: connection->PutData( strptr (cmdStr), len(cmdStr) ) If you don't ge...
by D.J.Peters
Sep 21, 2019 22:20
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3401

Re: TP-Link HS110

The most of all examples comes with SNC receive data as well. Why not looking at this examples ? Joshy ' ready to receive ? while connection->CanGet()<>1 : sleep 100 : wend dim as zstring ptr buffer var nBytes = connection->GetData(buffer) print "number of received bytes " & nBytes if ...

Go to advanced search