Page 2 of 2

Re: Graphic Primitives

Posted: Tue Mar 03, 2009 9:15 am
by Combuster
i586coder wrote:any comments :!:
Why is a 32 bit memset acccepting only 8-bit data? :roll:

Re: Graphic Primitives

Posted: Tue Mar 03, 2009 9:48 am
by Troy Martin
Have you tested it? We can't really reply and comment without results, other than the fact that I think your using of assembly for a memset is completely unnecessary. You can do it all in C without any asm needed.

<This space reserved for fix, comment, congratz, witty remark, or smartassery. :D >
Combuster wrote:
i586coder wrote:any comments :!:
Why is a 32 bit memset acccepting only 8-bit data? :roll:
Maybe it's a memset for a 32-bit OS? Kinda silly, though, imho.

Re: Graphic Primitives

Posted: Tue Mar 03, 2009 9:52 am
by Combuster
No I haven't tested things, but I can do manual instruction counting based on what code a compiler can produce.

And he's not using a common compiler... (If I had to guess, its Turbo C which doesn't optimize at all)

Re: Graphic Primitives

Posted: Tue Mar 03, 2009 9:53 am
by DeletedAccount

Code: Select all

/*

     
     
      Lots of comments
      even more comments
      some more comments

*/

I am just joking .... :) . Hope you dont take it too seriously :) . You are using a 16 bit compiler :) , turbo C .

Regards
Shrek

Re: Graphic Primitives

Posted: Tue Mar 03, 2009 10:15 am
by neon
Why are you writing a 32 bit OS in a 16 bit compiler? I assume you are using Turbo C by your usage of its ES directive. (Or has Borland released a 32 bit version of Turbo C that I am not aware of?)

Re: Graphic Primitives

Posted: Tue Mar 03, 2009 11:21 am
by i586coder
OK,
I'm using
1)nontraditional TURBO C++ 3.X PATCH AS FIRST STAGE COMPILING TO PRODUCE 32BIT ASSEMBLY INSTRUCTIONS
2)TURBO ASM 32BIT TO INTEGRATED WITH TURBO C,AND THIS IS THE IMPORTANT PART

so to be clear, C/C++ source file --> TCC --> ASM -->manual modification --> TASM --> OBJ
--> EXE
Combuster wrote:
i586coder wrote:any comments :!:
Why is a 32 bit memset acccepting only 8-bit data? :roll:
good question, in pixel art i need to repeat one pixel(byte) N times

CheerS,
a.T.d

Re: Graphic Primitives

Posted: Tue Mar 03, 2009 2:30 pm
by Combuster
i586coder wrote:
Combuster wrote:
i586coder wrote:any comments :!:
Why is a 32 bit memset acccepting only 8-bit data? :roll:
good question, in pixel art i need to repeat one pixel(byte) N times
You so totally missed the point.

Re: Graphic Primitives

Posted: Tue Mar 03, 2009 5:01 pm
by Troy Martin
Combuster wrote:No I haven't tested things, but I can do manual instruction counting based on what code a compiler can produce.
Sorry Com, was aiming my post at the OP :lol: