Skip to content

Instantly share code, notes, and snippets.

View keyboardspecialist's full-sized avatar

Jason Sobotka keyboardspecialist

View GitHub Profile
@keyboardspecialist
keyboardspecialist / vera.s
Created October 30, 2023 04:43
Lesson9 VERA
base $080d
jmp start
enum $0030
%define BOCHS_HD_IMAGE ;define this when booting in Bochs as a hard drive image
%define CONSOLE_WIDTH 0x4E
%define RTC_DIVIDER 0xF
%define PADDLE_WIDTH 0x08
%define PADDLE_SPEED 0x2
BITS 16 ;we are running in real mode, so 16 bit only
[org 0x7C00] ;set origin address to 0x7C00. This is where BIOS drops us off in RAM

Keybase proof

I hereby claim:

  • I am keyboardspecialist on github.
  • I am keroppl (https://keybase.io/keroppl) on keybase.
  • I have a public key ASBVmqpuVkNT4Yus8rzHDtcjcBo3RYf1y9GC7lrYAAFiYAo

To claim this, I am signing this object:

#include <stdio.h>
#include <string.h>
void wordrev(char* str)
{
char *p, *r, *tp, *ip;
p = str;
tp = strchr(str, ' ');
r = ip = !tp ? p + strlen(str)-1 : (tp==p ? tp : tp-1);
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <string.h>
#include <stdint.h>
#define found UINT_MAX-1
#define notfnd UINT_MAX-2
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <string.h>
#define found UINT_MAX-1
#define notfnd UINT_MAX-2
#define _DEBUG
SECTION "NPUZZLE"
GET "utils"
GET "utils.b"
MANIFEST
{ board = 0
childs = 1
nchild = 2
size_t
ida_star(const Node_t* root, const Node_t* goal)
{
size_t bound = fpH(root, goal);
size_t t = 0;
while(TRUE)
{
g_atree = mktree(g_start);
g_dbgNode = 1;
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <string.h>
#define found UINT_MAX-1
#define notfnd UINT_MAX-2
#define _DEBUG
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <string.h>
#define found UINT_MAX-1
#define notfnd UINT_MAX
#define _DEBUG