NASM - The Netwide Assembler
NASM Forum => Example Code => Topic started by: encryptor256 on January 05, 2014, 01:12:39 PM
-
Hello!
Basic info:
; ------------------------------------------------------------
;
; This is: Win64 Verlet Rope Physics Sandbox NASM + PELLES C
; Author: J.K. Encryptor256
; Date: 2014 Jan
; Using:
; 1. NASM: The Netwide Assembler, ( http://nasm.us/ )
; Created "verlet system" obj library in nasm.
; Created "sys - malloc, etc." obj library in nasm.
; Created "dds - linked lists" obj library in nasm.
;
; 2. PELLES C, ( http://www.smorgasbordet.com/pellesc/ )
; Created all qui stuff in pelles c.
; Adding all obj libraries at link time.
;
; Description:
;
; Create points, edges, witch between modes by mousewheel.
; Add objects:
; Press 'Q' to add a wheel.
; Press 'W' to add a grid clothe.
; Press 'E' enable disable point draw.
;
; Modes: (Use mousewheel to goto next or prev mode)
; "Mode: runtime"
; "Mode: runtime - break mode"
; "Mode: add points 0 NORMAL"
; "Mode: add points 1 FIXED"
; "Mode: add edges 0 NORMAL"
; "Mode: add edges 1 ALMOST WHITE"
; "Mode: add edges 2 BOLD THICK
;
; ------------------------------------------------------------
More info:
Created verlet system library in nasm, and all qui stuff into pelles c.
End result is pretty darn cool(see runtime demo's).
+ added more mousewheel modes.
Sys library, sys.asm, contains all functions needed to run all other libraries.
Dds library, dds.asm, contains data structures Linked Lists, depends on sys.asm.
Verlet library, nasmlib.asm, contains all functions needed to run verlet system, depends on sys.asm and dds.asm.
NASM, Compile:
- "nasm.exe -f win64 sys.asm -o sys.obj"
- "nasm.exe -f win64 dds.asm -o dds.obj"
- "nasm.exe -f win64 nasmlib.asm -o nasmlib.obj"
NASM, Compile produced: sys.obj, dds.obj, nasmlib.obj.
PELLES C, Link & Build: Add all libraries at link time. (See example code, source project)
Also using:
- Basic FPU Float64 and Vector2D NASM MACROS (http://forum.nasm.us/index.php?topic=1798.0)
- Win64 Linked List (NODELIST) NASM, GOLINK (http://forum.nasm.us/index.php?topic=1769.0)
Runtime demo on youtube:
- Win64 VRPSNP Runtime Video 0 Rope Physics (NASM) (http://youtu.be/MU4GjCv2zy0)
- Win64 VRPSNP Runtime Video 1 Net Grid Cloth (http://youtu.be/1_dld4bxCjs)
- Win64 VRPSNP Runtime Video 2 Wheels (http://youtu.be/dzFHITD9Zdk)
Added attachment, Win64VerletRopePhysicsSandboxNASMPELLESC.zip, includes:
"sys.asm, dds.asm, nasmlib.asm + pelles c project + compiled files, win64 exe and obj files, + float64 and vector2d macros".
Well, i think, that's it,
Encryptor256.
-
Interesting, Encriptor. Linked lists, I think I saw... phew, much work