Commit 0d3ebbf0 authored by Jack's avatar Jack
Browse files

added bor bxor, updated status.md

parent 760856d3
......@@ -584,6 +584,9 @@ namespace bitwise
};
inline int band(lua_State* L) { return bitwise<std::bit_and<data_t>>(L); }
inline int bor(lua_State* L) { return bitwise<std::bit_or<data_t>>(L); }
inline int bxor(lua_State* L) { return bitwise<std::bit_xor<data_t>>(L); }
inline int shl(lua_State* L) { return bitwise<shift_left>(L); }
inline int shr(lua_State* L) { return bitwise<shift_right>(L); }
......@@ -773,6 +776,8 @@ void lua::registerFunctions(lua_State* L)
lua_register(L, "sqrt", math::sqrt);
lua_register(L, "band", bitwise::band);
lua_register(L, "bor", bitwise::bor);
lua_register(L, "bxor", bitwise::bxor);
lua_register(L, "bnot", bitwise::bnot);
lua_register(L, "shl", bitwise::shl);
lua_register(L, "shr", bitwise::shr);
......
......@@ -2,4 +2,47 @@
| __Graphics__ | implemented? | tests? | notes |
| --- | --- | --- | --- |
| `camera([x,] [y])` | ✔ | ✔ | |
| `circ(x, y, r, [col])` | ✔ | ✕ | |
\ No newline at end of file
| `circ(x, y, r, [col])` | ✔ | | |
| `circfill(x, y, r, [col])` | ✔ | | |
| `clip([x,] [y,] [w,] [h])` | ✔ | | |
| `cls()` | ✔ | | |
| `color(col)` | ✔ | | |
| `cursor([x,] [y,] [col])` | ✔ | | |
| `fget(n, [f])` | ✔ | | |
| `fillp([pat])` | | | |
| `fset(n, [f,] [v])` | ✔ | | |
| `line(x0, y0, x1, y1, [col])` | ✔ | | |
| `pal([c0,] [c1,] [p])` | ✔ | | |
| `palt([c,] [t])` | ✔ | | |
| `print(str, [x,] [y,] [col])` | ✔ | | |
| `pset(x, y, [c])` | ✔ | | |
| `rect(x0, y0, x1, y1, [col])` | ✔ | | |
| `rectfill(x0, y0, x1, y1, [col])` | ✔ | | |
| `spr(n, x, y, [w,] [h,] [flip_x,] [flip_y])` | ✔ | | |
| `sset(x, y, [c])` | ✔ | | |
| `sspr(sx, sy, sw, sh, dx, dy, [dw,] [dh,] [flip_x,] [flip_y])` | ✔ | | missing flip |
# Tables
All functions implemented but not thoroughly tested
# Input
Only for 1 player
| `btn([i,] [p])` | ✔ | | |
| `btnp([i,] [p])` | ✔ | | not working as intended |
# Sound
Still lacking support.
# Map
| `map(cel_x, cel_y, sx, sy, cel_w, cel_h, [layer])` | ✔ | | |
| `mget(x, y)` | ✔ | | |
| `mset(x, y, v)` | ✔ | | |
# Math
Missing just `atan2`. No support for fixed point arithmetic, `float` is used at the moment.
# Memory
No function implemented yet but everything is already mapped to its correct address.
# Cartridge data
`cartdata`, `dget` and `dset` implemented but no persistence between sessione.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment