NextBuild 0.5 Toolset (updated 31/8/18)

Discuss game and other programming topics not specifically covered in another forum

Moderator: Programming Moderators

User avatar
emook
Posts: 58
Joined: Mon May 29, 2017 6:55 pm

Re: NextBuild 0.3b Toolset

Postby emook » Fri Aug 31, 2018 6:02 pm

Hi

I’ve updated it to v5, Cspect needed some sysvars setting to make thing work correctly that used ROM bits and bobs.

What version do you have?
---------
ZXorDIE

http://zxbasic.uk ZXBD Snapshot uploader
http://zxbasic.uk/db/0 ZXBasic Online Database

User avatar
emook
Posts: 58
Joined: Mon May 29, 2017 6:55 pm

Re: NextBuild 0.3b Toolset

Postby emook » Fri Aug 31, 2018 6:05 pm

Ok forgot to update the link here

http://zxbasic.uk/files/NextBuild-current.zip

NextBuild v5 is ready to test:

Massive update!
Now includes the NextLib which can be used with including :

#INCLUDE <nextlib.bas>

in your program and facilitates the following NEW commands to use

**SD Card :
LoadSD(filename$,address,length,offset) ; Loads from SD card
SaveSD(filename$,address,length) ; Saves to SD card
LoadBMP(filenam$) ; loads bmp to layer2

NOTE : in your project folder SD access files should be in the data folder. Compile includes should be in the root of your project folder.

**Layer2:
ShowLayer2(1=on 0 off)
ScrollLayer(X,Y)
InitSprites(Number of sprites to upload, address of data)
UpdateSprite(X,Y,sprite slow,sprite image,mirror & flip)
LoadBMP(filename$)
DoTile(x,y,tile number) ; 16x16px tiles start at $c000
DoTile8(x,y,tile number) ; 8x8px tiles start at $c000
PalUpload(address of palette,colours to upload,start from offset)
CLS256(colour)
TileMap(address of tilemap, start offset,number of tiles) ; this is for 8x8 tiles
ClipLayer2(x1,x2,y1,y2) ; clips layer 2 defaults 0,255,0,191
MMU(slot,bank number)
bank=GetMMU(slot) ; returns 8kb memory bank in slot
NextReg(reg,val) ; this is a macro for $91ED
NextRegA(reg,val) ; this sets a with val and does $92ED

zx7Unpack(source,destination) ; decompressor from the amazing Eianr Saukas

Fixes :

Now detects when the compilation fails and shows the logs rather than running the emulation (Thanks Johnny)
Array check has been renamed "Launch Fuse" in BorIDE and fixed to work properly
Now store the data files inside the data directory in your project folder, the MMC for CSpect will be automatically mapped.
Fixed crashes on certain commands (Print32/64/str etc) that relied on zxbasic sysvars being set
Cleaner output in the compile console
BorIDE moved to own folder and start address adjusted to always be 24576 and heap 1000
Lots of stuff cleaned up and tidied up.
In CSpect debugger the address labels are shown in the debugger with F1, F7 step
---------
ZXorDIE

http://zxbasic.uk ZXBD Snapshot uploader
http://zxbasic.uk/db/0 ZXBasic Online Database

User avatar
StealthGary
Posts: 13
Joined: Mon Aug 13, 2018 11:07 pm

Re: NextBuild 0.5 Toolset (updated 31/8/18)

Postby StealthGary » Sat Sep 01, 2018 1:00 am

Thanks emook! The new version is working much better... text displays correctly and CSpect doesn't seem to crash anymore. I've still noticed one or two inconsitancies between the two emulators, but I wouldn't know how to go about delving into what's going on there. I'll just push on with trying to learn ZXBasic and see how I get on.

Sayman
Posts: 10
Joined: Thu Jul 26, 2018 8:55 am

Re: NextBuild 0.5 Toolset (updated 31/8/18)

Postby Sayman » Sun Sep 02, 2018 2:59 pm

very much lacks the ability to view and edit the next basic files.

User avatar
emook
Posts: 58
Joined: Mon May 29, 2017 6:55 pm

Re: NextBuild 0.5 Toolset (updated 31/8/18)

Postby emook » Sun Sep 02, 2018 4:31 pm

Sayman wrote:
Sun Sep 02, 2018 2:59 pm
very much lacks the ability to view and edit the next basic files.
Sorry what do you mean exactly?
---------
ZXorDIE

http://zxbasic.uk ZXBD Snapshot uploader
http://zxbasic.uk/db/0 ZXBasic Online Database

Sayman
Posts: 10
Joined: Thu Jul 26, 2018 8:55 am

Re: NextBuild 0.5 Toolset (updated 31/8/18)

Postby Sayman » Mon Sep 03, 2018 1:28 am

emook wrote:
Sun Sep 02, 2018 4:31 pm
Sayman wrote:
Sun Sep 02, 2018 2:59 pm
very much lacks the ability to view and edit the next basic files.
Sorry what do you mean exactly?
I mean - feature for NextBuild Toolset for import/read basic files from Next and export/save to Next basic format.

User avatar
SevenFFF
Posts: 189
Joined: Mon Jun 05, 2017 5:30 pm
Location: USA

Re: NextBuild 0.5 Toolset (updated 31/8/18)

Postby SevenFFF » Mon Sep 03, 2018 3:47 pm

NeztBASIC and Boriel’s BASIC have different feature sets and syntax though. Not sure how that would work, or how useful it would be be if it did.
Robin Verhagen-Guest
SevenFFF / Threetwosevensixseven / colonel32
Spectron 2084blog

User avatar
emook
Posts: 58
Joined: Mon May 29, 2017 6:55 pm

Re: NextBuild 0.5 Toolset (updated 31/8/18)

Postby emook » Wed Sep 05, 2018 12:59 pm

Yes the two may look similar and have similar names but one is interpreted on the Next in real-time (ala normal basic) and Biriels is compiled into optimized machine code.

I admit the names are a bit confusing, which is why I refer to Bories as ZXBC ;) Maybe I can get Boriel to rename it to ZX compiler instead.
---------
ZXorDIE

http://zxbasic.uk ZXBD Snapshot uploader
http://zxbasic.uk/db/0 ZXBasic Online Database

Mikele
Posts: 1
Joined: Sat Sep 02, 2017 7:39 pm

Re: NextBuild 0.5 Toolset (updated 31/8/18)

Postby Mikele » Sun Oct 07, 2018 8:47 am

Hi!
I think there is a bug in LoadBMP function and every loaded picture is distorted. It looks like the screen is divided into 3 parts similar way as in the classic ULA and 2nd part is moved right by 1 pixel and 3rd part is moved right by 2 pixels. It's easy to see on dots.bmp from Nextlibs examples folder.
In an emulator:
Image

In photoshop:
Image


Who is online

Users browsing this forum: No registered users and 0 guests