Skip to content

Instantly share code, notes, and snippets.

View rdeioris's full-sized avatar

Roberto De Ioris rdeioris

View GitHub Profile
BACKGROUND_COLOR = $5100 ; assign the background color
BACKGROUND_SCROLL_X = $5101
BACKGROUND_SCROLL_Y = $5102
; write to chr rom
CHR_COL = $5103
CHR_ROW = $5104
CHR_PIXEL = $5105
INPUT = $5106
@rdeioris
rdeioris / indirect.asm
Last active October 26, 2018 15:47
6502 Indirect mode tutorial with debug
; How indirect mode works
; first we write an address in the first two bytes of the zeropage
; we are working with $4240
; first the low byte ($40)
LDA #$40 ; load low byte in accumulator
STA zeropage_byte0 ; store low byte (from the accumulator) in the first byte of the zero page
; NOTE: we can optimize using a zeropage write: STA <zeropage_byte0 (with < symbol meaning the low byte of a 16bit number)
; then the high byte of the address
LDA #$42 ; load high byte in accumulator
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vector>
#include <iostream>
#include <exception>
class VulkanApp
{
public:
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vector>
#include <iostream>
#include <exception>
class VulkanApp
{
public:
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vector>
#include <iostream>
#include <exception>
class VulkanApp
{
public:
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vector>
#include <iostream>
#include <exception>
int main(int argc, char **argv)
{
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vector>
#include <iostream>
#include <exception>
int main(int argc, char **argv)
{
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vector>
#include <iostream>
#include <exception>
int main(int argc, char **argv)
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SQLite;
using System.Data.Linq;
using System.Data.Linq.Mapping;
namespace LearningDB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aiv.Fast3D;
using Aiv.Fast2D;
using OpenTK;
namespace LearningNormalMap