78 switch( resource->
type ) {
80 if ( image->bankAssigned != -1 ) {
83 sprintf(alreadyLoadedLabel,
"%salready", label );
86 sprintf( bankWindowId,
"(BANKWINDOW%2.2x-2)", image->residentAssigned );
89 sprintf( bankWindowName,
"BANKWINDOW%2.2x", image->residentAssigned );
128 outline1(
"LDU #$%4.4x", image->frameSize );
130 outline1(
"JSR BANKREADBANK%2.2xXSDR", image->bankAssigned );
133 outline1(
"LDX #%s", bankWindowName );
134 outline1(
"JSR BANKREADBANK%2.2xXS", image->bankAssigned );
142 resource.
realName = strdup( bankWindowName );
145 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, image->frameSize, 0, _flags );
150 ef936x_put_image( _environment, resource, _x1, _y1,
"",
"", image->frameSize, image->frameCount, _flags );
152 ef936x_put_image( _environment, resource, _x1, _y1, frame->
name,
"", image->frameSize, image->frameCount, _flags );
156 ef936x_put_image( _environment, resource, _x1, _y1,
"", sequence->
name, image->frameSize, image->frameCount, _flags );
158 ef936x_put_image( _environment, resource, _x1, _y1, frame->
name, sequence->
name, image->frameSize, image->frameCount, _flags );
164 if ( image->bankAssigned != -1 ) {
167 sprintf(alreadyLoadedLabel,
"%salready", label );
170 sprintf( bankWindowId,
"BANKWINDOWID%2.2x", image->residentAssigned );
173 sprintf( bankWindowName,
"BANKWINDOW%2.2x", image->residentAssigned );
191 if ( image->strips ) {
194 outline1(
"LDY #%sstrip", image->realName );
220 outline1(
"LDU #$%4.4x", image->frameSize );
222 outline1(
"JSR BANKREADBANK%2.2xXSDR", image->bankAssigned );
225 outline1(
"LDX #%s", bankWindowName );
226 outline1(
"JSR BANKREADBANK%2.2xXS", image->bankAssigned );
234 resource.
realName = strdup( bankWindowName );
237 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, image->frameSize, 0, _flags );
242 if ( image->strips ) {
245 outline1(
"LDY #%sstrip", image->realName );
259 ef936x_put_image( _environment, resource, _x1, _y1,
"", NULL, image->frameSize, 0, _flags );
261 ef936x_put_image( _environment, resource, _x1, _y1, realFrame->
name, NULL, image->frameSize, 0, _flags );
267 if ( image->bankAssigned != -1 ) {
270 sprintf(alreadyLoadedLabel,
"%salready", label );
273 sprintf( bankWindowId,
"BANKWINDOWID%2.2x", image->residentAssigned );
276 sprintf( bankWindowName,
"BANKWINDOW%2.2x", image->residentAssigned );
279 if ( image->uncompressedSize ) {
282 bank_read_semi_var( _environment, image->bankAssigned, image->absoluteAddress, bankWindowName, image->size );
285 cpu_label( _environment, alreadyLoadedLabel );
288 resource.
realName = strdup( bankWindowName );
291 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 1, 0, _flags );
293 ef936x_put_image( _environment, resource, _x1, _y1, NULL, NULL, 1, 0, _flags );
308 char labelNoBankCompressed[
MAX_TEMPORARY_STORAGE]; sprintf( labelNoBankCompressed,
"%snocompressed", label );
309 char labelDecompressionDone[
MAX_TEMPORARY_STORAGE]; sprintf( labelDecompressionDone,
"%sdecompression", label );
327 if ( strlen(_sequence) == 0 ) {
333 if ( strlen(_frame) == 0 ) {
342 if ( strlen(_frame) == 0 ) {
365 outline1(
"BEQ %s", labelNoBankCompressed );
383 cpu_jump( _environment, labelDecompressionDone );
385 cpu_label( _environment, labelNoBankCompressed );
393 cpu_label( _environment, labelDecompressionDone );
413 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 0, 0, _flags );
415 cpu_jump( _environment, labelDone );
424 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 0, 0, _flags );