Post Reply 
(50G) [HPGCC3] DRAW3DMATRIX replacement with grayscale surfaces, proof of concept
12-28-2017, 10:19 AM
Post: #13
RE: (50G) [HPGCC3] DRAW3DMATRIX replacement with grayscale surfaces, proof of concept
In a spirit of adventure, I modified Claudio's helloWorld example to use WAIT_CANCEL instead if getchar():
/*
* helot.c
*
* Created on: Dec 28, 2017
* Author: murray
*/
#include <hpgcc3.h>
/* workaround for ROM globals placed at the start of the .data / .bss area; we need to shift out own variables past them */
__attribute__((section(".romglobals"))) int __ROMglobals__[20]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
int main()
{
printf("Hello world!\n");
WAIT_CANCEL;
return 0;
}
This produces an improvement - the previous version hung in a tight loop, from the look of the cpu usage of x49gp, whereas now the program exits cleanly when I hit cancel. The characters of the displayed text are still distorted though.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (50G) [HPGCC3] DRAW3DMATRIX replacement with grayscale surfaces, proof of concept - Murray - 12-28-2017 10:19 AM



User(s) browsing this thread: 1 Guest(s)