You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{privatebool_isCpuRunning=false;// store registers Accessors values to these bytes.privatebyte_a,_b,_c,_d,_e,_f,_h,_l;privateint_sp,_pc;publicbyteA{get;set;}// 8-bit register A. Value between 0x8000 - 0x0100.publicbyteF{get;set;}// 8-bit Flag register F. Value between 0x0080 - 0x0000publicintAF{get;set;}// 16-bit register AF. Combined register A with register F.publicbyteB{get;set;}// 8-bit register B. Value betweem 0x8000 - 0x0100.publicbyteC{get;set;}// 8-bit register C. Value between 0x0080 - 0x0000.publicintBC{get;set;}// 16-bit register BC. Combined register B with register C.publicbyteD{get;set;}// 8-bit register D. Value between 0x8000 - 0x0100.publicbyteE{get;set;}// 8-bit register E. Value between 0x0080 - 0x0000.publicintDE{get;set;}// 16-bit register DE. Combined register D with register E.publicbyteH{get;set;}// 8-bit register H. Value between 0x8000 - 0x0100.publicbyteL{get;set;}// 8-bit register L. Value between 0x0080 - 0x0000.publicintHL{get;set;}// 16-bit register HL. Combined register H with register L.publicintSP{get;set;}// 16-bit Stack Pointer registerpublicintPC{get;set;}// 16-bit Program Counter. Initialize value 0x100.// Rest of the class
As you can see, C and His both at Flag and CPU. Therefore VS gives warning:
Warning CS0108 'LR35902.C' hides inherited member 'Flag.C'. Use the new keyword if hiding was intended.
The text was updated successfully, but these errors were encountered:
Class Flag:
Class CPU (simplified):
As you can see,
C
andH
is both at Flag and CPU. Therefore VS gives warning:The text was updated successfully, but these errors were encountered: