From 596a42abc73e5d3cb12538248ce1ebc90f42ec24 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Tue, 15 Oct 2013 11:04:12 +0200 Subject: Now drawing (blue) --- elymas/lib/ffi/sdl.ey | 20 +++++++++++++++----- elymas/lib/sys/so.ey | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) (limited to 'elymas') diff --git a/elymas/lib/ffi/sdl.ey b/elymas/lib/ffi/sdl.ey index 605e6e3..96f43fe 100644 --- a/elymas/lib/ffi/sdl.ey +++ b/elymas/lib/ffi/sdl.ey @@ -3,13 +3,23 @@ "/usr/lib/x86_64-linux-gnu/libSDL2.so" :dlopen -- - 32 ==:SDL_INIT_VIDEO + 32 ==:INIT_VIDEO - { -0021 :resolveFunction -01 deffd }' "->" deffd + { _ "SDL_" -01 cat -1032 :resolveFunction -01 deffd }' "->" deffd - "i" "i32" ->SDL_Init - "" "s" ->SDL_GetError - "siiiii" "p" ->SDL_CreateWindow + "" "" ->SetMainReady + "i" "i32" ->Init + "" "" ->Quit + "" "s" ->GetError + + "siiiii" "p" ->CreateWindow + "p" "" ->DestroyWindow + "p" "i32" ->UpdateWindowSurface + "p" "p" ->GetWindowSurface + "pbi" "i32" ->FillRect + { 0 -201 } /SDL_FillRect "pii" "i32" :resolveFunction ; /Fill deffd + + SetMainReady > /sdl ffi .defv # vim: syn=elymas diff --git a/elymas/lib/sys/so.ey b/elymas/lib/sys/so.ey index 4a0632f..274a4e3 100644 --- a/elymas/lib/sys/so.ey +++ b/elymas/lib/sys/so.ey @@ -262,7 +262,7 @@ { [ - { rets "v" streq }' { } + { rets "" streq }' { } { rets "s" streq }' { /rax :pushqReg /rcx /rcx :xorqRegReg -- cgit v1.2.3