![]() |
BritLion's Putchars - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: How-To & Tutorials (https://www.boriel.com/forum/forumdisplay.php?fid=13) +---- Thread: BritLion's Putchars (/showthread.php?tid=237) |
Re: BritLion's Putchars - LCD - 06-17-2010 britlion Wrote:Added a paintData sub for you. It's really quite similar to paint - but has to work a bit harder.How can I thank you for it? ![]() Re: BritLion's Putchars - britlion - 06-17-2010 Make borIDE better than TommyGun :-) Re: BritLion's Putchars - LCD - 06-17-2010 britlion Wrote:Make borIDE better than TommyGun :-)How much better? :mrgreen: BorIDE is dedicated only for BorIDE, and is already much better, except that it still misses some important parts. I plan to release the first test version in 2-3 weeks. I also plan to bundle a game on which I'm working too, but with final version. I'm testinf BorIDE for bugs by writing this gane. Re: BritLion's Putchars - compiuter - 06-18-2010 Question for Britlion or others: I see You use this in your code Code: SUB paint (x as uByte,y as uByte, width as uByte, height as uByte, attribute as ubyte) I know in fastcall you read in the registers hl de ... the arguments sends by fastcall. But you use IX register. Can you explain me about this. I believe you use similar method by fastcall in the sub function. Thx. Re: BritLion's Putchars - boriel - 06-18-2010 @compiuter: There's a simple way: generate the asm source code with --asm and see how the function is compiled. I always do this test: Code: SUB xxx(a as uByte, b as Uinteger) Code: _xxx: Re: BritLion's Putchars - britlion - 06-19-2010 O_O That will be VERY useful indeed! Re: BritLion's Putchars - compiuter - 06-19-2010 Thx for explaining, I don“t know how is the value of all codes ix,ld,... I take a look in spectaculator with a for.. next peeking the values and search where is 5 or 6 or 99 or the value I put for arguments. I see you use IX in sub for taking the parameters. Seems to be a good method. The other method, I never used freebasic, seems to me more complicated, but perhaps more effective and quick. Re: BritLion's Putchars - britlion - 06-19-2010 You can grab function parameters starting at (IX+4) - but you have to know the size of the parameters, and how they stack up to make it work. For example, single bytes are still stacked as two (because PUSH does that), so if the first parameter is a byte, you'll find it at IX+5. Re: BritLion's Putchars - boriel - 06-19-2010 britlion Wrote:You can grab function parameters starting at (IX+4) - but you have to know the size of the parameters, and how they stack up to make it work.I also forgot to mention that Local byte variables do take a single byte as expected, because PUSH is not used :wink: Re: BritLion's Putchars - LCD - 08-02-2012 Just a request: How about a modification to use mask bytes? 1 Byte for mask and 1 byte for graphics data. Also GetChars() to grab original background to preserve it? |