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 );
132 outline1(
"LDU #$%4.4x", image->frameSize );
134 outline1(
"JSR BANKREADBANK%2.2xXSDR", image->bankAssigned );
137 outline1(
"LDX #%s", bankWindowName );
138 outline1(
"JSR BANKREADBANK%2.2xXS", image->bankAssigned );
146 resource.
realName = strdup( bankWindowName );
149 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, image->frameSize, 0, _flags );
154 ef936x_put_image( _environment, resource, _x1, _y1,
"",
"", image->frameSize, image->frameCount, _flags );
156 ef936x_put_image( _environment, resource, _x1, _y1, frame->
name,
"", image->frameSize, image->frameCount, _flags );
160 ef936x_put_image( _environment, resource, _x1, _y1,
"", sequence->
name, image->frameSize, image->frameCount, _flags );
162 ef936x_put_image( _environment, resource, _x1, _y1, frame->
name, sequence->
name, image->frameSize, image->frameCount, _flags );
168 if ( image->bankAssigned != -1 ) {
171 sprintf(alreadyLoadedLabel,
"%salready", label );
174 sprintf( bankWindowId,
"BANKWINDOWID%2.2x", image->residentAssigned );
177 sprintf( bankWindowName,
"BANKWINDOW%2.2x", image->residentAssigned );
199 if ( image->strips ) {
202 outline1(
"LDY #%sstrip", image->realName );
228 outline1(
"LDU #$%4.4x", image->frameSize );
230 outline1(
"JSR BANKREADBANK%2.2xXSDR", image->bankAssigned );
233 outline1(
"LDX #%s", bankWindowName );
234 outline1(
"JSR BANKREADBANK%2.2xXS", image->bankAssigned );
242 resource.
realName = strdup( bankWindowName );
245 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, image->frameSize, 0, _flags );
250 if ( image->strips ) {
253 outline1(
"LDY #%sstrip", image->realName );
267 ef936x_put_image( _environment, resource, _x1, _y1,
"", NULL, image->frameSize, 0, _flags );
269 ef936x_put_image( _environment, resource, _x1, _y1, frame->
name, NULL, image->frameSize, 0, _flags );
275 if ( image->bankAssigned != -1 ) {
278 sprintf(alreadyLoadedLabel,
"%salready", label );
281 sprintf( bankWindowId,
"BANKWINDOWID%2.2x", image->residentAssigned );
284 sprintf( bankWindowName,
"BANKWINDOW%2.2x", image->residentAssigned );
291 if ( image->uncompressedSize ) {
294 bank_read_semi_var( _environment, image->bankAssigned, image->absoluteAddress, bankWindowName, image->size );
297 cpu_label( _environment, alreadyLoadedLabel );
300 resource.
realName = strdup( bankWindowName );
303 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 1, 0, _flags );
305 ef936x_put_image( _environment, resource, _x1, _y1, NULL, NULL, 1, 0, _flags );
320 char labelNoBankCompressed[
MAX_TEMPORARY_STORAGE]; sprintf( labelNoBankCompressed,
"%snocompressed", label );
321 char labelDecompressionDone[
MAX_TEMPORARY_STORAGE]; sprintf( labelDecompressionDone,
"%sdecompression", label );
339 if ( strlen(_sequence) == 0 ) {
345 if ( strlen(_frame) == 0 ) {
354 if ( strlen(_frame) == 0 ) {
377 outline1(
"BEQ %s", labelNoBankCompressed );
396 cpu_jump( _environment, labelDecompressionDone );
398 cpu_label( _environment, labelNoBankCompressed );
406 cpu_label( _environment, labelDecompressionDone );
426 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 0, 0, _flags );
428 cpu_jump( _environment, labelDone );
437 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 0, 0, _flags );