From 1ec7f27dcc50a0085efa09e7b4312abc66b2f36f Mon Sep 17 00:00:00 2001 From: David Stancu Date: Sun, 28 Jan 2018 11:40:43 -0500 Subject: [PATCH] i am an idiot for placing data segments in the machine code without either telling PC to skip or making strict data segments, super ouch, but it works! --- src/main.S | 71 ++++++++++++++++++++++-------------------------------- 1 file changed, 29 insertions(+), 42 deletions(-) diff --git a/src/main.S b/src/main.S index 1a47e79..c3a82d3 100644 --- a/src/main.S +++ b/src/main.S @@ -5,7 +5,7 @@ ; ensure 16-bit mode (unnecessary?) clc xce - rep #$30 + rep #$20 phk plb @@ -25,16 +25,12 @@ ldal $00C056 ; select "low res" graphics ; ok, we are done toggling switches, let's go make a string - rep #$30 + rep #$20 - phk - pld - -hithere strl "hello world" ldx #2 :loopy nop lda hithere,x - stal $000400 + stal $000400,x cpx hithere inx bcs outbrk @@ -42,41 +38,6 @@ hithere strl "hello world" outbrk brk -; y u no work -* ldx hithere+2 -* ldy #$0400 -* lda hithere - -* mvp #$02, #$00 - -* brk - -* lda #"H" -* sta $0400 -* lda #"e" -* sta $0401 -* lda #"l" -* sta $0402 -* lda #"l" -* sta $0403 -* lda #"o" -* sta $0404 -* lda #" " -* sta $0405 -* lda #"W" -* sta $0406 -* lda #"o" -* sta $0407 -* lda #"r" -* sta $0408 -* lda #"l" -* sta $0409 -* lda #"d" -* sta $040A - brk - - - ; Important locations SPEAKER equ $E0C030 PRODOS16 equ $E100A8 @@ -93,6 +54,32 @@ ERROR brk QP adrl $0000 da $00 +hithere strl "this was excruciating" + + + + + + + + + + + + + + + + + + + + + + + + +