Initial Commit

This commit is contained in:
2020-07-11 08:41:14 -05:00
parent 55c0f7f3cd
commit 1478a597cf
176 changed files with 11933 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
AS = lcc -c
CC = lcc -Wa-l -Wl-m
BIN = input_wait.gb
OBJS = input_wait.o
all: $(BIN)
%.s: %.ms
maccer -o $@ $<
$(BIN): $(OBJS)
$(CC) -o $(BIN) $(OBJS)
clean:
rm -rf $(BIN) $(OBJS) *~

View File

@@ -0,0 +1,6 @@
# Input Wait
![](screenshot.png)
Demonstrates how to wait for key pressed and releases.

View File

@@ -0,0 +1,15 @@
#include <stdio.h>
#include <gb/gb.h>
void main() {
while(1) {
printf("Press Start\n\n");
waitpad(J_START);
printf("Please hold down A!\n\n");
waitpad(J_A);
printf("Holding down A!\n\n");
waitpadup();
printf("Tired already?\n\n\n");
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB