Search found 67 matches

by DJ Sures
Mon Apr 10, 2023 10:20 am
Forum: Other targets
Topic: NABU: ANSI Terminal mode only 32 char width
Replies: 3
Views: 1855

Re: NABU: ANSI Terminal mode only 32 char width

No rush :) Just something i was testing and came across it. Thanks in advance!
by DJ Sures
Sun Apr 09, 2023 7:52 am
Forum: Other targets
Topic: NABU: ANSI Terminal mode only 32 char width
Replies: 3
Views: 1855

NABU: ANSI Terminal mode only 32 char width

Interestingly, something seems to have changed between the last time I've built the console test program. The previous build displays correctly with 80 columns. With the recent z88dk, the same program limits the column width to 32. Do you know what might have changed to cause this? Here's the build ...
by DJ Sures
Tue Mar 28, 2023 7:06 pm
Forum: Other targets
Topic: NABU floating point errors
Replies: 2
Views: 1506

Re: NABU floating point errors

Awesome! I looked at examples globe.c which used float but didn't see any references to libraries - so i resorted to picking your brain :)

I need it to calculate angles with sin/cos to make the NABU control a robot like Logo: https://youtu.be/uCJ52hgORow
by DJ Sures
Mon Mar 27, 2023 10:55 pm
Forum: Other targets
Topic: NABU floating point errors
Replies: 2
Views: 1506

NABU floating point errors

Is there a libmath or something missing in the +cpm -sub-type=nabu? I get the following error when attempting to do any floaty mcducks... uint8_t _heading = 0; float _x = 256 / 2; float _y = 100.0; float sinArray[360] = { 0, 0.02, 0.03,.... }; float cosArray[360] = { 1, 1, 1, 1, 1, 1,....... }; void...
by DJ Sures
Mon Mar 27, 2023 10:53 pm
Forum: Other targets
Topic: Inline assembly push/pop?
Replies: 2
Views: 1575

Re: Inline assembly push/pop?

ha - well there's so much in z88dk that i'm still learning to find stuff :D Will explore!
by DJ Sures
Mon Mar 27, 2023 7:16 pm
Forum: Other targets
Topic: Inline assembly push/pop?
Replies: 2
Views: 1575

Inline assembly push/pop?

I do a ton of inline assembly in NABULIB and cloud cpm bios. Because the compiler doesn't know what registers are being used in the inline, should i be making the habit of pushing and popping the registers that i mangle? i.e. void vdp_refreshViewPort() { vdp_setWriteAddress(_vdpPatternNameTableAddr)...
by DJ Sures
Mon Mar 27, 2023 7:14 pm
Forum: Other targets
Topic: Headless graphics
Replies: 1
Views: 1470

Re: Headless graphics

haha man that's awesome! I just implemented serial output in cloud cp/m. I'll have to make a test program with this for ppl who use a serial console.
by DJ Sures
Mon Mar 13, 2023 10:01 pm
Forum: Other targets
Topic: Another NABU Project to Share: Cloud GUI
Replies: 2
Views: 1396

Re: Another NABU Project to Share: Cloud GUI

The infamous Stefano! Hats off, bro - serious work you've done with z88dk. There's a lot to go, though; the more I do, the more ideas I have! Your stuff will keep me busy for a long time. Again, thanks to you and Dom.
by DJ Sures
Sun Mar 12, 2023 11:16 pm
Forum: Other targets
Topic: Another NABU Project to Share: Cloud GUI
Replies: 2
Views: 1396

Another NABU Project to Share: Cloud GUI

Thanks to DOM's support, I've added a few more NABU utilities to the system. All the NABU software I've created has been from z88dk, and Dom has been integral: https://nabu.ca/software. The file stuff that you helped me with, Dom, has resulted in RNCMD: https://youtu.be/r0W2kE7RZZA However, after fi...
by DJ Sures
Sun Mar 12, 2023 11:08 pm
Forum: Other targets
Topic: Scroll portion of screen with clib ansi
Replies: 3
Views: 1574

Re: Scroll portion of screen with clib ansi

Thanks for the response, dom - I was hoping there was a simple scrollUp(topRow, bottomRow) command that would use the same text scrolling code from clib ansi. Shifting the data in the pattern and color generator isn't that much more effort, so it's something that I can do. I was struggling to find t...
by DJ Sures
Sun Mar 12, 2023 8:27 pm
Forum: Other targets
Topic: Scroll portion of screen with clib ansi
Replies: 3
Views: 1574

Scroll portion of screen with clib ansi

Hello - I'm looking to port some of my text-based applications to the clib=ansi using conio.h for gotoxy() and vtrendition() on TMS9918a VDP. The thing is, I need to scroll a portion of the screen between rows. For example, scroll text UP between rows 3 and 12. I created a small function to read the...
by DJ Sures
Mon Feb 27, 2023 11:29 pm
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

Re: fread cpm no no

Thanks to DOM, there is RNCMD in Cloud CP/M - for copying files between the PC, CPM and User Areas! Wooot
Capture.PNG
Capture.PNG
by DJ Sures
Mon Feb 27, 2023 6:46 pm
Forum: Other targets
Topic: Are there known issues with sscanf()?
Replies: 2
Views: 1398

Re: Are there known issues with sscanf()?

Oh my yes - geez that’s what I get for late night coding. Why did I not see that haha. Apologies for my sloppiness lol
by DJ Sures
Mon Feb 27, 2023 6:45 pm
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

Re: fread cpm no no

Wonderful - and I learned a lot as well about using ix as a stack. Something I never considered reseting after saving. I only choose to exx thinking it’ll be faster than 4 separate push’s and pop’s *shrug* I didn’t look to see the cycle difference. But it looks cleaner anyway :) I wasn’t expecting y...
by DJ Sures
Mon Feb 27, 2023 7:53 am
Forum: Other targets
Topic: Are there known issues with sscanf()?
Replies: 2
Views: 1398

Are there known issues with sscanf()?

I cannot get %c to work with sscanf(). See this code... uint8_t _srcUA = 0; uint8_t _srcDrive = 'a'; uint8_t _srcName[15] = { 0 }; uint8_t * src2 = "a:2:asdfsf"; sscanf(src2, "%c:%u:%s", &_srcDrive, &_srcUA, _srcName); printf("%u - %u - %s - %s \n", _srcDrive, _...
by DJ Sures
Sun Feb 26, 2023 11:32 pm
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

Re: fread cpm no no

Okay the Cloud CPM BIOS online has been updated - so next time you load cloud cpm, the new bios will automatically download, and the z88dk CPM file IO will work for you. Thank you The next question is - how can I read/write to different user areas? You mentioned the code for parsing the user/drive s...
by DJ Sures
Sun Feb 26, 2023 11:11 pm
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

Re: fread cpm no no

As always, you're insight set me on the right track - thanks again. Boy, I'd like to buy you a beer (or ten). So what you said about IX made sense, so actually, all I needed to do was save IX and ld IX, 0 in my SAVE and RESTORE stack functions. I also realized I should be using exx. So now my stack ...
by DJ Sures
Sun Feb 26, 2023 10:12 pm
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

Re: fread cpm no no

Compiler options are zcc +z80 -mz80 --no-crt -compiler=sdcc --list -m -O3 --opt-code-size --no-peep -lm main.c -o "BIOS_CPM22.BIN" The only reason it seems to use IX in the read function is due to the 32 bit int for dealing with the file size. /// ******************************************...
by DJ Sures
Sun Feb 26, 2023 9:23 pm
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

Re: fread cpm no no

Interesting, I can't imagine how that's happening because IX is pushed to my save stack at the beginning of the function and restored at the end. The calling origin from the code below is... 7920 2887 cd0000 call ____sdcc_store_dehl_bcix Which calls (this is the portion of code that you traced to) _...
by DJ Sures
Sun Feb 26, 2023 6:06 pm
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

Re: fread cpm no no

I checked my bios functions to see the stack that's being saved. IX is indeed in there, saved and restored at the beginning and end of each bios function. #define SAVE_STACK_ASM push hl; \ ld hl, sp; \ ld sp, 0xffff; \ push hl; \ push bc; \ push de; \ push af; \ push iy; \ push ix; #define RESTORE_S...
by DJ Sures
Sun Feb 26, 2023 2:59 pm
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

Re: fread cpm no no

I tried removing the drive & user spec, and the original version checked for null. I stripped it down to show the basic functionality of what I'm doing. Here's a more detailed test version of the same thing. void CPM2CPM() { FILE *fsrc; puts("Gonna open"); fsrc = fopen("TEST.TXT&q...
by DJ Sures
Sun Feb 26, 2023 7:30 am
Forum: Other targets
Topic: fread cpm no no
Replies: 15
Views: 2973

fread cpm no no

Hey everyone - Cloud CP/M and all the z88dk on Nabu have been amazing - thanks to Dom and his hardwork. Today, I worked on a file manager utility that will allow copying files between CPM and the Internet Adapter. I am having difficulty with fread(). Can you think of any reason why this function sho...
by DJ Sures
Fri Jan 27, 2023 1:50 am
Forum: Other targets
Topic: NABU Computer Support
Replies: 94
Views: 555854

Re: NABU Computer Support

Here is the Dstar sample game for NABU CP/M. I've noticed that the current NABU network version crashes at the start. I have added screen mode switching in the dstar.c file, I'm using mode 2 for gameplay, and with that it's working. Use QAOP and Space. I updated the cloud cp/m user area 4 with DSTA...
by DJ Sures
Thu Jan 26, 2023 2:39 am
Forum: Other targets
Topic: NABU CP/M kbhit,etc not using bdos
Replies: 10
Views: 1376

Re: NABU CP/M kbhit,etc not using bdos

super thumbs up, dom. i'll add a dpb for it in cloud cpm bios to be d:
by DJ Sures
Wed Jan 25, 2023 11:38 pm
Forum: Other targets
Topic: NABU CP/M kbhit,etc not using bdos
Replies: 10
Views: 1376

Re: NABU CP/M kbhit,etc not using bdos

Roger! That’s perfect.

Also, do you know the nabu disk cpm diskinfo by chance? To make testing z88dk programs, I’ll make cloud cpm bios use the D: for z88dk disk images