======================== = GREYSCALE 83/83 Plus = ======================== By Paul Marks Version: 0.1 Released: 11/25/99 ============================== =In this file, you will find:= ============================== ==================================== =Information on Developing Pictures= ==================================== 1. Developing Pictures for the 83/83 Plus -------------------------------------------------------------------------------------- There is a standardized header to go with any picture, it is as follows: .db "GPicV0.1",0 ;This tells GPic 83/83+ that the following data is a picture file .db $09 ;This is the length of the title in bytes (1 character = 1 byte) ;including the zero at the end .db "Test Pic",0 ;This is the title of the picture .db $01 ;This is the number of layers that the picture contains ;If the picture has only one layer, then it can only ;have black and white ;If the picture has two layers, then it can have 4 ;colors ;If the picture has three layers, then it can have 8 ;colors .db $0B ;This is the height of the picture, in pixels (B=11 [hex]) .db $02 ;This is the width of the picture in bytes (1 byte per 8 pixels) ie (16 pixels = 2 bytes), (24 = 3) ... .dw $0016 ;This is the total size in bytes, also the height in pixels ;times the width in bytes (height*(width/8)) (per layer!) layer1: ;This label makes no difference at all to the program, it ;just helps you sort out the layers while developing the ;picture .db %00000001,%10000000 .db %00000010,%01000000 .db %00000010,%01000000 .db %00000100,%00100000 .db %00001000,%00010000 .db %00001000,%00010000 .db %00010000,%00001000 .db %00100000,%00000100 .db %00100000,%00000100 .db %01000000,%00000010 .db %11111111,%11111111 ;This file will display an image of a black and white ;triangle. (0=off 1=on) ;the numbers are in binary, so it is easier to "see" the ;picture ;ie %00100000 - you can see which pixel will be on. But the ;same thing in hex is $20 ;see how much easier binary is? .end ;end of program This file would generate a black and white triangle with the name of Test Pic So here is the standard header: .db "GPicV0.1",0 ;required detection string .db $09 ;title length .db "Test Pic",0 ;title, zero-terminated .db $01 ;number of layers .db $0B ;height .db $02 ;width in bytes .dw $0016 ;total size of 1 layer (height*(width in bytes)) (per layer) Layer1: ;DATA GOES HERE Layer2: ;OPTIONAL (DATA GOES HERE) Layer3: ;OPTIONAL (DATA GOES HERE) .end ;End of File Paul Marks PMarks@employees.org Member of the Abolition Programming Alliance