Petscii strings in Vasm
Posted: Wed Jun 15, 2022 9:44 pm
When I declare a string of bytes in vasm, using the .byte directive, it assumes the characters are ascii
but, I obviously want petscii codes, so everything has to be encoded:
Does anyone know of a directive, or command-line flag, for vasm, that will make it use petscii for byte strings?
Code: Select all
.byte “HELLOWORLD”, $00 ; 11 bytes
Code: Select all
; H E L L O W O R L D
.byte $08, $05, $0C, $0C, $0F, $17, $0F, $12, $0C, $04, $00 ; 11 bytes