User Tools

Site Tools


base:advanced_optimizing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
base:advanced_optimizing [2016-06-19 09:47] – [Forming terms] bitbreakerbase:advanced_optimizing [2017-03-04 22:25] – [DCP/ISC] monte_carlos
Line 1154: Line 1154:
 Another good use can be made if you want to do a inc/dec ($xx),y what is actually not available. So here isc/dcp ($xx),y will help you out, as it is also available for the indirect y adressing mode.  Another good use can be made if you want to do a inc/dec ($xx),y what is actually not available. So here isc/dcp ($xx),y will help you out, as it is also available for the indirect y adressing mode. 
  
 +f.e.:
 +
 +<code>
 +ldy #..
 +lda (zp),y
 +clc
 +adc #..
 +sta (zp),y
 +bcc +
 +iny
 +isc (zp),y
 ++
 +</code>
 +
 +or
 +
 +<code>
 +ldy #..
 +lda (zp),y
 +sec
 +sbc #..
 +sta (zp),y
 +bcs +
 +iny
 +dcp (zp),y
 ++
 +</code>
 For decrementing a 16 bit pointer it is also of good use: For decrementing a 16 bit pointer it is also of good use:
  
base/advanced_optimizing.txt · Last modified: 2024-03-03 11:06 by bitbreaker