Warning: If you are thinking about using this command, do not. Using the command can cause serious errors in your program. There are very few, if any, cases in which this directive should be used.


The .seek command is used to change SPASM's internal program counter in the way .org cannot. .seek can be used to change SPASM's pc to any location already written and rewrite existing data.

.db 0, 1, 2
.db 3, 4, 5
.db 6, 7, 8
.seek 3
.db "LOL"
.seek 9
;equivalent to
.db 0, 1, 2
.db "LOL"
.db 6, 7, 8

This example would create a data 0-8 as the first 9 bytes. The seek command goes the value 3 and replaces 3,4,5 with 'L', 'O', 'L'


.seek address



The address of the data you wish to seek to.

Last edited Sep 28, 2011 at 5:34 PM by BuckeyeDude, version 2


No comments yet.