66 switch( resource->
type ) {
68 if ( image->bankAssigned != -1 ) {
71 sprintf(alreadyLoadedLabel,
"%salready", label );
74 sprintf( bankWindowId,
"(BANKWINDOW%2.2x-2)", image->residentAssigned );
77 sprintf( bankWindowName,
"BANKWINDOW%2.2x", image->residentAssigned );
94 outline1(
"LDY #$%4.4x", image->absoluteAddress );
133 outline1(
"LDU #$%4.4x", image->frameSize );
135 outline1(
"JSR BANKREADBANK%2.2xXSDR", image->bankAssigned );
138 outline1(
"LDX #%s", bankWindowName );
139 outline1(
"JSR BANKREADBANK%2.2xXS", image->bankAssigned );
149 resource.
realName = strdup( bankWindowName );
152 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, image->frameSize, 0, _flags );
166 ef936x_put_image( _environment, resource, _x1, _y1,
"",
"", image->frameSize, image->frameCount, _flags );
168 ef936x_put_image( _environment, resource, _x1, _y1, frame->
name,
"", image->frameSize, image->frameCount, _flags );
172 ef936x_put_image( _environment, resource, _x1, _y1,
"", sequence->
name, image->frameSize, image->frameCount, _flags );
174 ef936x_put_image( _environment, resource, _x1, _y1, frame->
name, sequence->
name, image->frameSize, image->frameCount, _flags );
180 if ( image->bankAssigned != -1 ) {
183 sprintf(alreadyLoadedLabel,
"%salready", label );
186 sprintf( bankWindowId,
"BANKWINDOWID%2.2x", image->residentAssigned );
189 sprintf( bankWindowName,
"BANKWINDOW%2.2x", image->residentAssigned );
211 outline1(
"LDY #$%4.4x", image->absoluteAddress );
221 if ( image->strips ) {
224 outline1(
"LDY #%sstrip", image->realName );
253 outline1(
"LDU #$%4.4x", image->frameSize );
255 outline1(
"JSR BANKREADBANK%2.2xXSDR", image->bankAssigned );
258 outline1(
"LDX #%s", bankWindowName );
259 outline1(
"JSR BANKREADBANK%2.2xXS", image->bankAssigned );
269 resource.
realName = strdup( bankWindowName );
272 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, image->frameSize, 0, _flags );
288 if ( image->strips ) {
290 outline1(
"LDY #%sstrip", image->realName );
303 ef936x_put_image( _environment, resource, _x1, _y1,
"", NULL, image->frameSize, 0, _flags );
305 ef936x_put_image( _environment, resource, _x1, _y1, frame->
name, NULL, image->frameSize, 0, _flags );
311 if ( image->bankAssigned != -1 ) {
314 sprintf(alreadyLoadedLabel,
"%salready", label );
317 sprintf( bankWindowId,
"BANKWINDOWID%2.2x", image->residentAssigned );
320 sprintf( bankWindowName,
"BANKWINDOW%2.2x", image->residentAssigned );
329 if ( image->uncompressedSize ) {
330 outline1(
"LDX #$%4.4x", image->absoluteAddress );
333 outline1(
"JSR BANKUNCOMPRESS%2.2xXSDR", image->bankAssigned );
336 outline1(
"LDY #%s", bankWindowName );
337 outline1(
"JSR BANKUNCOMPRESS%2.2xXS", image->bankAssigned );
342 outline1(
"LDY #$%4.4x", image->absoluteAddress );
343 outline1(
"LDU #$%4.4x", image->size );
345 outline1(
"JSR BANKREADBANK%2.2xXSDR", image->bankAssigned );
348 outline1(
"LDX #%s", bankWindowName );
349 outline1(
"JSR BANKREADBANK%2.2xXS", image->bankAssigned );
355 cpu_label( _environment, alreadyLoadedLabel );
359 resource.
realName = strdup( bankWindowName );
362 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 1, 0, _flags );
364 ef936x_put_image( _environment, resource, _x1, _y1, NULL, NULL, 1, 0, _flags );
379 char labelNoBankCompressed[
MAX_TEMPORARY_STORAGE]; sprintf( labelNoBankCompressed,
"%snocompressed", label );
380 char labelDecompressionDone[
MAX_TEMPORARY_STORAGE]; sprintf( labelDecompressionDone,
"%sdecompression", label );
398 if ( strlen(_sequence) == 0 ) {
404 if ( strlen(_frame) == 0 ) {
413 if ( strlen(_frame) == 0 ) {
436 outline1(
"BEQ %s", labelNoBankCompressed );
465 cpu_jump( _environment, labelDecompressionDone );
467 cpu_label( _environment, labelNoBankCompressed );
475 cpu_label( _environment, labelDecompressionDone );
496 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 1, 0, _flags );
498 cpu_jump( _environment, labelDone );
507 ef936x_put_image( _environment, &resource, _x1, _y1, NULL, NULL, 1, 0, _flags );