Author |
Topic: 256 Thread fast ping sweep (Read 1533 times) |
|
sveinioslo
Developer
member is offline


Posts: 64
|
 |
Re: 256 Thread fast ping sweep
« Reply #2 on: Mar 27th, 2015, 5:37pm » |
|
That is because 'push 32' gives op-code '6A 20' which is 'push imm8' in my manual. I have not read anywhere if that means only one byte is pushed or if it is padded to dword. Msdn specifies dword (actually they say word but that doesn't work), so better safe than sorry.
Svein
|
|
Logged
|
|
|
|
rtr2
Guest
|
 |
Re: 256 Thread fast ping sweep
« Reply #3 on: Mar 27th, 2015, 6:46pm » |
|
on Mar 27th, 2015, 5:37pm, sveinioslo wrote: You perhaps forget how much experience I have had of writing x86 assembler code - the entire BBC BASIC for Windows interpreter is implemented that way! I would not have recommended that you use push 32 if there was a risk associated with it; there isn't. The imm8 referred to is the size of the operand (32 fits into a signed 8-bit number); it doesn't relate to the number of bytes pushed onto the stack, which is always 4 (or a multiple thereof).
As I said, using push 32 will make your code shorter and easier to read. If you think there is some sort of risk associated with doing that you should stop using BB4W immediately because there are probably hundreds of such instructions in the code of the interpreter! 
Richard.
|
| « Last Edit: Mar 27th, 2015, 7:30pm by rtr2 » |
Logged
|
|
|
|
sveinioslo
Developer
member is offline


Posts: 64
|
 |
Re: 256 Thread fast ping sweep
« Reply #4 on: Mar 30th, 2015, 08:00am » |
|
Hehe, i used to use 'push imm' but changed it to the 'push reg' because i wasn't sure how many bytes was pushed. This program wasn't easy to get working, my first multithreaded project, it required a lot of research. I am making a note on the mov/push instructions, thank you.
Svein
|
|
Logged
|
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 256 Thread fast ping sweep
« Reply #5 on: May 28th, 2016, 1:26pm » |
|
Svein,
I notice that you use the phrase, "multi-threading", which has caught my eye. I am currently playing around with 3D graphics using asm and wondered if I could get it to go faster by multi-threading. Unfortunately I have been unable to find satisfactory explanations on the net. Does your code enable two or more sections of code to execute at the same?
The project I am working on is in General Board under 3D gaming project.
Any help would be greatly appreciated.
Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
michael
Senior Member
member is offline


Posts: 335
|
 |
Re: 256 Thread fast ping sweep
« Reply #6 on: May 31st, 2016, 11:59am » |
|
Apparently, you would need to ask David Williams, as he was apparently behind creating: GFXLIB library I am also curious about being able to use ASM to draw super fast to the screen. Its all about stepping stones. If David were willing to repost the research and the Library for us, maybe we could have some fun. Its up to you David. PLEASE?
|
|
Logged
|
I like making program generators and like reinventing the wheel
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 256 Thread fast ping sweep
« Reply #9 on: Jun 16th, 2016, 07:59am » |
|
Thanks guys, I'll look into it.
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
|