Search found 14 matches

by Jbizzel
Mon Feb 20, 2023 10:43 pm
Forum: Other targets
Topic: z88 print a bmp
Replies: 6
Views: 1648

Re: z88 print a bmp

@Dom haha! You know about that debacle!

Yes, I have been seriously thinking about it!!

One where you turn the z88 upside down and shake it to clear the screen. :lol:
by Jbizzel
Mon Feb 20, 2023 9:57 pm
Forum: Other targets
Topic: z88 print a bmp
Replies: 6
Views: 1648

Re: z88 print a bmp

Dom,

I just tested you examples for 64x64 and 255 - BRILLIANT and amazing! :)

Thank you sir!!

Image
by Jbizzel
Mon Feb 20, 2023 8:20 pm
Forum: Other targets
Topic: z88 print a bmp
Replies: 6
Views: 1648

Re: z88 print a bmp

Ah!! thanks Dom.

At least I know I've done something right!! I'll figure out how to work with this.
by Jbizzel
Mon Feb 20, 2023 7:44 pm
Forum: Other targets
Topic: z88 print a bmp
Replies: 6
Views: 1648

z88 print a bmp

I have some code that opens a window, size 255. I then use putsprite() to draw a 64x64 pixel image on the screen. This works perfectly! :) BUT, if I change the window size to 64 or to 128 for example, and the image doesn't render correctly, and there are blank bars breaking the image up. I'm really ...
by Jbizzel
Thu Sep 02, 2021 9:00 pm
Forum: Other targets
Topic: Comparing a Char Z88
Replies: 5
Views: 3482

Re: Comparing a Char Z88

Thanks guys for your help. I see my many errors and have got it working now with your help.
by Jbizzel
Thu Sep 02, 2021 7:14 am
Forum: Other targets
Topic: Comparing a Char Z88
Replies: 5
Views: 3482

Comparing a Char Z88

I know this must be so easy, but I can't get it to work! I have an unsigned char Hands[] which sometimes contains the letter 'Q' I want to do a check and if it contains 'Q' then print 'Qu' else print whatever is in Hands - But my code below doesn't work. I also tried if (Hands =="q'){etc} - whi...
by Jbizzel
Sun Aug 29, 2021 1:00 pm
Forum: Other targets
Topic: Bold text on the Z88
Replies: 3
Views: 3158

Re: Bold text on the Z88

Wait, I found the example and got it to work! :) I'd been compiling the example file wrong! I needed to use... +z88 -clib=ansi When I compiled. Then I can ... printf("%c[1m bold text here. \n", 27); printf("%c[2m no longer bold here.\n",27); Thanks @dom for the examples. I used t...
by Jbizzel
Sat Aug 28, 2021 9:29 pm
Forum: Other targets
Topic: clearing the input buffer - z88
Replies: 2
Views: 2353

Re: clearing the input buffer - z88

thanks Dom, that works very well! :)
by Jbizzel
Sat Aug 28, 2021 11:31 am
Forum: Other targets
Topic: clearing the input buffer - z88
Replies: 2
Views: 2353

clearing the input buffer - z88

Hi, I'm using a timer like this: void timer() { int i; printf(" 3 Minute Timer:"); for( i = 1 ; i < 11 ; i++ ){ sleep(18); printf("%d,", i ); } return(0); } And the user can press a key to move the timer on more quickly - which I'm happy with that happening. However, the next tim...
by Jbizzel
Thu Aug 26, 2021 8:32 pm
Forum: Other targets
Topic: sleep in Z88
Replies: 4
Views: 2985

Re: sleep in Z88

Thanks Dom,

So sleep is the better way, as it is kinder to the battery? That's good to know.

I'll give it a whirl with sleep again.

Cheers

Jamie
by Jbizzel
Thu Aug 26, 2021 7:08 pm
Forum: Other targets
Topic: sleep in Z88
Replies: 4
Views: 2985

Re: sleep in Z88

Hi Dom, Yes it happens on real hardware too. I was after a 3 minute timer. I've tried a different approach and this seems to work on OZvm OK. Maybe this is a better method? #include <stdio.h> #include <time.h> int main () { time_t seconds; time_t after15; int i; printf("press a key"); getc...
by Jbizzel
Thu Aug 26, 2021 6:25 pm
Forum: Other targets
Topic: sleep in Z88
Replies: 4
Views: 2985

sleep in Z88

Hi, I have this bit of code, I'm expecting it to sleep for 18 seconds, then print to screen and loop back etc. When I run the code the length of time the sleep happens reduces each time it loops. So the first time is 18 seconds, but towards the end the sleep is only 2-3 seconds. I can't understand w...
by Jbizzel
Thu Aug 26, 2021 5:01 pm
Forum: Other targets
Topic: Bold text on the Z88
Replies: 3
Views: 3158

Re: Bold text on the Z88

Thanks @dom,

I did try <conio.h> that explains why it didn't work.
by Jbizzel
Tue Jun 29, 2021 8:17 pm
Forum: Other targets
Topic: Bold text on the Z88
Replies: 3
Views: 3158

Bold text on the Z88

Hello! I hope its ok to ask very basic questions as I'm trying to learn C (knowing only a little basic...) for the Cambridge Z88 So I'm making a little Boggle dice game - so far I've made a random boggle board that displays it on screen. I'd like to make some of the text bold - I think I need to use...