Example #1
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.RemoveWord((ushort)(offset + _.S.Value));
     }));
 }
Example #2
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.A = _.S;
     }));
 }
Example #3
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.RemoveByte((ushort)(_.S.Value));
         _.S = _.S.Add(-1);
     }));
 }
Example #4
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.A = Register.UNINITIALIZED;
         _.RemoveByte((ushort)(offset + _.S.Value));
     }));
 }
Example #5
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.A = _.A.LoadConstant((_.A.Value & 0xFF00) | value);
         _.RemoveByte((ushort)(offset + _.S.Value));
     }));
 }
Example #6
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.P |= 0x10;
         _.AllowModeChange = false;
     }));
 }
Example #7
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.A = _.A.Add(offset);
         _.S = _.A;
         _.AllowModeChange = true;
     }));
 }
Example #8
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.A = _.A.LoadConstant(value);      // Need to be able to track high / low bytes independently...
         _.RemoveByte((ushort)(_.S.Value));
         _.S = _.S.Add(-1);
     }));
 }
Example #9
0
 public override SpriteGeneratorState Apply(SpriteGeneratorState state)
 {
     return(state.Clone(_ =>
     {
         _.A = _.A.LoadConstant(value);
         _.RemoveWord((ushort)(_.S.Value - 1));
         _.S = _.S.Add(-2);
     }));
 }