Search found 62 matches

by WauloK
Tue Jan 28, 2020 11:37 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

By the way, the ARM buttons (FIRE2) use a different port. Here's some sample code from the AGD mentioned above: ; Joystick 1. joy1 in a,($2e) ; read joystick1 call readjoy ; convert to joyval in a,($2d) ; Read arm button joystick1 and $10 jr z, joy1a res 5,e ; Not pressed, carry clear jr joy1b joy1a...
by WauloK
Tue Jan 28, 2020 11:33 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

I tested it on my Real VZ300. Up, Down, Left, Right work on both joysticks but not FIRE or the ARM button (fire2). Whenever I copy a .vz file made with z88dk to my SD Card I get a notice: The file filename.vz has properties that can't be copied to the new location. Are you sure you want to copy this...
by WauloK
Sun Jan 26, 2020 2:49 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

I have a feeling MESS might do it but I'd have to check. VZEm definitely doesn't.
by WauloK
Sat Jan 25, 2020 11:07 pm
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

So in C I'd use:
direction = read_joystick();
and it'd return that value?
by WauloK
Sat Jan 25, 2020 10:44 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

Trying to work out how to pass values back from Z80 Assembly to my C code. I can't find any info on the z88dk wiki pages. I want to read the joystick values and give them back to C to work on. Any ideas?
by WauloK
Sun Dec 22, 2019 8:18 pm
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

Thanks
by WauloK
Sun Dec 22, 2019 5:53 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

How can I recompile a Z88dk callee .asm file so it is incorporated in my compilation of my code?
The vz_score and vz_brick calls were changed from what I wrote in 2000 and are now not working so I need to fix it for my new game.
I've updated vz_score_callee.asm but when I build it's still wrong.
by WauloK
Sun Dec 15, 2019 10:21 am
Forum: Bug reports
Topic: Error with over 3 asm files
Replies: 2
Views: 1636

I think I've fixed it now. The error is not occurring any more. I think because I used include "sprites.asm" in another file Then when I compile with *.asm it includes twice and confuses it. Trying to work out another way to make sure the sprites.asm file is added to the bottom of another ...
by WauloK
Sun Dec 15, 2019 4:53 am
Forum: Other targets
Topic: Foxglovz v0.3 released
Replies: 11
Views: 3547

oh sorry! Turns out I was downloading from SourceForge and not getting -latest nightly builds. I guess SF is way outta date.
by WauloK
Sun Dec 15, 2019 4:48 am
Forum: Other targets
Topic: Foxglovz v0.3 released
Replies: 11
Views: 3547

Code: Select all

        int mode = 33;
        console_ioctl(IOCTL_GENCON_SET_MODE, &mode);
Using mode = 1 or mode =33 no longer changes modes. Only clg() changes modes but I cannot change the colour of anything
by WauloK
Sun Dec 15, 2019 4:41 am
Forum: Other targets
Topic: Foxglovz v0.3 released
Replies: 11
Views: 3547

Both textcolor(x) and vz_color(x) seem to have stopped working.
by WauloK
Sat Dec 14, 2019 8:02 am
Forum: Bug reports
Topic: Error with over 3 asm files
Replies: 2
Views: 1636

Error with over 3 asm files

It drove me crazy for a while and I don't know what's going on, but if I use this line the compile is successful: zcc +vz -zorg=31488 -vn -m file.c foxsprites.asm file_title.asm file_music.asm sprites.asm -o output.vz -create-app -lndos -z80-verb But if I do it this way: zcc +vz -zorg=31488 -vn -m f...
by WauloK
Sat Dec 14, 2019 2:54 am
Forum: Other targets
Topic: Z88dk1.9 - 1 bit sound for other targets?
Replies: 16
Views: 7944

figured it out
by WauloK
Thu Dec 12, 2019 10:53 am
Forum: Windows
Topic: Setting up Visual Studio to compile Z88DK code and github
Replies: 0
Views: 2031

Setting up Visual Studio to compile Z88DK code and github

Howdy! I had some spare time tonight so I set up my Visual Studio install to make it work with Z88DK. I had already installed the dos/shell git and set it up so it was immediately available in Visual Studio. I created a VS 'task' which has the commandline parameters set up for compiling with Z88DK. ...
by WauloK
Tue Dec 10, 2019 9:26 am
Forum: Other targets
Topic: Z88dk1.9 - 1 bit sound for other targets?
Replies: 16
Views: 7944

If I have tritone data in a .asm file, how do I make this available to my Z88DK c code via a pointer and call the player?
by WauloK
Sat Nov 16, 2019 10:57 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

Cheers
by WauloK
Sat Nov 16, 2019 4:32 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

hmm seems for the last one I have to add -lm
by WauloK
Sat Nov 16, 2019 4:27 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

Tried the bit_play demo tune in the wiki: bit_play("2A--A-B-CDEFGAB5C+"); Error at file 'bit_play.c' line 496: symbol 'dmul' not defined Error at file 'bit_play.c' line 497: symbol 'ifix' not defined Error at file 'bit_play.c' line 506: symbol 'dswap' not defined Error at file 'bit_play.c'...
by WauloK
Sat Nov 16, 2019 4:22 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

Trying to use delay(x):

Code: Select all

delay(5);
Error at file 'main.c' line 1621: symbol '_delay' not defined
Errors in source file D:\Dev\VZ\z88dk\lib\config\..\..\\lib\target\vz\classic\vz_crt0.asm:
Error at file 'main.c' line 1621: symbol '_delay' not defined
^ ---- (null)
by WauloK
Sat Nov 16, 2019 3:18 am
Forum: Other targets
Topic: Some things not working for me
Replies: 50
Views: 14163

switch doesn't seem to work with constants.

Code: Select all

#define FX = 0
soundfx(FX);

Code: Select all

void soundfx(int sound) 
{
 switch(sound)
 {
  case FX:
gives an error

So does:

Code: Select all

const int FX = 0;
switch (sound) 
{
 case FX:
Only thing that works:

Code: Select all

switch (sound) 
{
 case 0:
by WauloK
Sun Nov 10, 2019 10:47 am
Forum: Other targets
Topic: Foxglovz v0.3 released
Replies: 11
Views: 3547

I see there are multiple putsprite routines. What would be the best way to call putsprite from Assembly? I'd like to do a Tiles type routine but I think C would be to slow to draw a screen full of sprites. It may be that since the VZ can only use the slowest putsprite I may have to just do it by han...
by WauloK
Sat Nov 09, 2019 11:40 pm
Forum: Other targets
Topic: Foxglovz v0.3 released
Replies: 11
Views: 3547

I tested with MODE(1) and the textcolor(x) functions and they do work, tho.

Code: Select all

int mode = 1;
console_ioctl(IOCTL_GENCON_SET_MODE, &mode);
textcolor(4);
by WauloK
Sat Nov 09, 2019 11:21 pm
Forum: Other targets
Topic: Foxglovz v0.3 released
Replies: 11
Views: 3547

Cheers
by WauloK
Sat Nov 09, 2019 10:31 pm
Forum: Other targets
Topic: Foxglovz v0.3 released
Replies: 11
Views: 3547

Since the colours are out of order on z88dk here they are if you can update them please: MODE(0) - text & blocky characters extern int _vzgreen = 1; extern int _vzyellow = 2; extern int _vzblue = 3; extern int _vzred = 4; extern int _vzbuff = 5; extern int _vzcyan = 6; extern int _vzmagenta = 7;...
by WauloK
Sat Nov 09, 2019 9:32 pm
Forum: Other targets
Topic: Foxglovz v0.3 released
Replies: 11
Views: 3547

Sounds good to me. Thanks!