Pretty print model

This commit is contained in:
Michaelangel007 2017-07-17 12:22:54 -07:00
parent b661d939b1
commit 757794887c
7 changed files with 30 additions and 14 deletions

View File

@ -3,7 +3,7 @@
Linux Logo in 6502 assembly language. Linux Logo in 6502 assembly language.
Size: 696 ($2B8) bytes Size: 705 ($2C1) bytes
# Screenshots # Screenshots
@ -17,6 +17,7 @@ Size: 696 ($2B8) bytes
# Features # Features
* Detects Apple \]\[, \]\[+, //e, //e+, //c, //c+ * Detects Apple \]\[, \]\[+, //e, //e+, //c, //c+
* Pretty-print model instead of generic "II_" (bloats from 696 but worth it.)
* Detects 48K/64K/128K * Detects 48K/64K/128K
* System out all uppercase (for Apple \]\[ without lowercase) * System out all uppercase (for Apple \]\[ without lowercase)
* Cleaned up fugly logo by Albert Lai * Cleaned up fugly logo by Albert Lai

View File

@ -78,6 +78,7 @@ apple_ii
apple_iiplus apple_iiplus
jsr AS_HGR ; ][ = $D000, Only on Apple ][+ jsr AS_HGR ; ][ = $D000, Only on Apple ][+
pla pla
cmp #$EA ; apple ][+? cmp #$EA ; apple ][+?
bne apple_iie ; if so keep going bne apple_iie ; if so keep going
@ -89,14 +90,25 @@ apple_iiplus
apple_ii_normal apple_ii_normal
lda #" " ; $A0 lda #" " ; $A0
set_apple_ii set_apple_ii
ldx #"]"
ldy #"["
stx ModType-2
sty ModType-1
sta ModType ; erase last 'e' in 'Apple IIe' sta ModType ; erase last 'e' in 'Apple IIe'
; ldx #3-1
;SetCpu6502
; lda CpuTye6502,X
; sta CpuType,X
; dex
; bne SetCpu6502
lda #" " ; $A0 lda #" " ; $A0
sta CpuType ; '_6502' sta CpuType ; '_6502'
lda #"6" ldx #"6"
sta CpuType+1 ldy #"5"
lda #"5" stx CpuType+1
sta CpuType+2 sty CpuType+2
detect_langcard detect_langcard
sta RAMIN ; Detect 16K RAM / Language Card sta RAMIN ; Detect 16K RAM / Language Card
@ -168,23 +180,25 @@ DrawRow
sta zUnpackBits+0 sta zUnpackBits+0
NextSrcShift NextSrcShift
lda #0
sta zSrcShift
lda PackedBits+1,Y lda PackedBits+1,Y
sta zUnpackBits+1 sta zUnpackBits+1
GetBit lda #0
UpdateSrcShift
sta zSrcShift
jsr Unpack2Bits ; hhggffee C=? ddccbbaa jsr Unpack2Bits ; hhggffee C=? ddccbbaa
bcs UnpackDone bcs UnpackDone
lsr zUnpackBits+1 ; 0hhggffe C=e ddccbbaa lsr zUnpackBits+1 ; 0hhggffe C=e ddccbbaa
ror zUnpackBits+0 ; 0hhggffe C=e eddccbba ror zUnpackBits+0 ; 0hhggffe C=e eddccbba
lsr zUnpackBits+1 ; 00hhggff C=e eddccbba lsr zUnpackBits+1 ; 00hhggff C=e eddccbba
ror zUnpackBits+0 ; 00hhggff c=e eeddccbb ror zUnpackBits+0 ; 00hhggff c=e eeddccbb
inc zSrcShift ;
inc zSrcShift
CheckFetch
lda zSrcShift lda zSrcShift
clc
adc #2
cmp #8 ; have 8 input bits? cmp #8 ; have 8 input bits?
bne GetBit bne UpdateSrcShift
iny ; src++ iny ; src++
bne NextSrcShift bne NextSrcShift
UnpackDone UnpackDone
@ -361,13 +375,14 @@ CpuType = * + 13 + 40
RamSize = * + 30 + 40 RamSize = * + 30 + 40
ModType = * + 24 + 40*2 ModType = * + 24 + 40*2
; Uppercase in case of Apple II without lowercase support ; Uppercase in case of Apple ][ without lowercase support
; 1 2 3 ; 1 2 3
TextLine ;0123456789012345678901234567890123456789 TextLine ;0123456789012345678901234567890123456789
ASC " LINUX VERSION 2.6.22.6, COMPILED 2007 " ; Row $14 ASC " LINUX VERSION 2.6.22.6, COMPILED 2007 " ; Row $14
ASC " ONE 1.02MHZ 65C02 PROCESSOR, 128KB RAM " ; Row $15 ASC " ONE 1.02MHZ 65C02 PROCESSOR, 128KB RAM " ; Row $15
ASC " APPLE IIe " ; Row $16 ASC " APPLE //e " ; Row $16
; ^ ^ ^ ; ^ ^ ^
; CPUTYPE MOD RAM
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB