flat assembler
Message board for the users of flat assembler.
Index
> Main > Hilbert Curve :-D Goto page Previous 1, 2, 3 |
Author |
|
bitRAKE 14 Apr 2008, 00:19
Another interesting piece of related software:
http://www.contextfreeart.org/ _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
14 Apr 2008, 00:19 |
|
edfed 14 Apr 2008, 00:25
awesome! just it will install VB so i don't want it.. but awesome.
if i cannot code in asm a good application, i'll try to make art. |
|||
14 Apr 2008, 00:25 |
|
Rahsennor 18 Apr 2008, 05:08
Procedural generation!
Very cool. |
|||
18 Apr 2008, 05:08 |
|
bitRAKE 04 Jul 2008, 16:45
ContextFree has been converted to JavaScript to work on browsers with Canvas support!
http://azarask.in/projects/algorithm-ink/ This is one of my favorites: http://azarask.in/projects/algorithm-ink/#6f2d1634 _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
04 Jul 2008, 16:45 |
|
bitRAKE 16 Aug 2008, 08:14
I've converted the windows code to work in long mode - no change to hilbert routine needed, lol.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup Last edited by bitRAKE on 18 Aug 2008, 15:09; edited 2 times in total |
|||||||||||
16 Aug 2008, 08:14 |
|
bitRAKE 17 Aug 2008, 00:16
Madis731 wrote: Another thing is that I can't find the 64-bit code of your program anywhere. I've been on the FF3 beta's for a long time - they keep me current with the latest test builds. (If a moderator could move this thread to "Projects" - might be more fitting?) Edit: changed file name to "HilbertW64.fasm" to not conflict with 32-bit code. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
17 Aug 2008, 00:16 |
|
asmfan 17 Aug 2008, 06:41
Cute table to remember!
Code: ;------------------------------------------------------- ; Register(s) | Status | Use ;-------------|-------------|--------------------------- ; RAX | Volatile | Return value register ; RCX | Volatile | 1st argument if integer ; RDX | Volatile | 2nd argument if integer ; R8 | Volatile | 3rd argument if integer ; R9 | Volatile | 4th argument if integer ; R10:R11 | Volatile | preserved by caller ; | | used in syscall/sysret instructions ; XMM0 | Volatile | 1st argument if FP ; XMM1 | Volatile | 2nd argument if FP ; XMM2 | Volatile | 3rd argument if FP ; XMM3 | Volatile | 4th argument if FP ; XMM4:XMM5 | Volatile | preserved by caller ; | | ; RDI | Nonvolatile | preserved by callee ; RSI | Nonvolatile | preserved by callee ; RBX | Nonvolatile | preserved by callee ; RBP | Nonvolatile | preserved by callee ; RSP | Nonvolatile | stack pointer ; R12:R15 | Nonvolatile | preserved by callee ; | | ; XMM6:XMM15 | Nonvolatile | preserved by callee ;------------------------------------------------------- bitRAKE you made it? Nice idea to put such in every x64 asm file for simplicity. _________________ Any offers? |
|||
17 Aug 2008, 06:41 |
|
Madis731 17 Aug 2008, 11:53
@asmfan: I think that this is a standard... I can't recall was it ABI or something?
@bitRAKE, sorry I forgot to refresh the page I cached the site in the morning and answered in the evening EDIT: Doesn't exit gracefully...better to say, it doesn't exit, but leaves the process running, though the image is drawn okay. |
|||
17 Aug 2008, 11:53 |
|
bitRAKE 17 Aug 2008, 15:15
asmfan wrote: Cute table to remember! _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
17 Aug 2008, 15:15 |
|
bitRAKE 17 Aug 2008, 15:34
Madis731 wrote: EDIT: Doesn't exit gracefully...better to say, it doesn't exit, but leaves the process running, though the image is drawn okay. Code: xor eax,eax
leave
pop rdi rsi
retn _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
17 Aug 2008, 15:34 |
|
Madis731 17 Aug 2008, 16:03
Mhmh, this...
Code: .xit: enter 32,0 ; shadow space required xor ecx,ecx call [PostQuitMessage] ; leave ; retn xor eax,eax leave pop rdi rsi retn ...helped. M$W Server 2003 Standard x64 Edition SP2. I think that XP64 might behave the same way, though I don't have it, but Vista64 will be quite different. I guess I can try that on my laptop too (which is Enterprise Ed.), but I think I won't be surprised. I seem to always need proper exits in my Server code or |
|||
17 Aug 2008, 16:03 |
|
asmfan 17 Aug 2008, 19:29
I supposed that it was ABI But interested, was it taken from somewhere in such neat & tidy compact view. Of course reading bunch of MS docs and blogs such raymond chen's is useful but time consuming too. And this is example of simplicity as is.
|
|||
17 Aug 2008, 19:29 |
|
bitRAKE 18 Aug 2008, 00:52
Ah, yes. Thanks Madis731. MSDN docs do say to return zero. But "pop rdi rsi" is very odd - they haven't been stored on the stack at that execution level. If you remove "ps PAINTSTRUCT" -- which isn't used -- you'll experience the problem with MSG structure being too small -- hDCBitmap gets overwritten. I've made the following change:
Code: struct MSG hwnd dq ? message dq ? wParam dq ? lParam dq ? time dq ? pt POINT ends This is my plotter/bitmap template which I use to test algorithms and get visual feedback -- like the Perlin Noise routine. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
18 Aug 2008, 00:52 |
|
bitRAKE 18 Aug 2008, 04:16
asmfan wrote: I supposed that it was ABI But interested, was it taken from somewhere in such neat & tidy compact view. Of course reading bunch of MS docs and blogs such raymond chen's is useful but time consuming too. And this is example of simplicity as is. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
18 Aug 2008, 04:16 |
|
asmfan 18 Aug 2008, 15:27
Oh thanks, indeed MS sometimes do useful things in few words. /I don't mean Vista thou)/
_________________ Any offers? |
|||
18 Aug 2008, 15:27 |
|
MCD 24 Aug 2008, 23:42
bitRAKE wrote: Another interesting piece of related software: I find this funny http://www.contextfreeart.org/gallery/view.php?id=243 This reminds me when I was doing L-system stuff with fractint on DOS. |
|||
24 Aug 2008, 23:42 |
|
bitRAKE 04 Sep 2008, 00:08
Finally able to test on Win2k3 x64, and CreateWindow is creating another thread and loading a bunch of DLLs - might have something to do with IME. Therefore, simply returning to TerminateThread routine will not work - must call ExitProcess. All windows on this installation seem to have 2+ threads. It does seem odd windows isn't closing this other thread - obviously I'm doing something wrong in my WNDPROC as well.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
04 Sep 2008, 00:08 |
|
Goto page Previous 1, 2, 3 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.